public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: libc-hacker@sources.redhat.com
Subject: Fix pthread_barrier_wait
Date: Thu, 19 Feb 2004 23:07:00 -0000	[thread overview]
Message-ID: <jeoerulld3.fsf@sykes.suse.de> (raw)

This fixes a syntax error in the last change to pthread_barrier_wait.

Andreas.

2004-02-19  Andreas Schwab  <schwab@suse.de>

	* sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
	Fix last change.

--- nptl/sysdeps/pthread/pthread_barrier_wait.c.~1.2.~	2004-02-19 10:54:44.000000000 +0100
+++ nptl/sysdeps/pthread/pthread_barrier_wait.c	2004-02-19 23:57:20.467915474 +0100
@@ -73,7 +73,7 @@ pthread_barrier_wait (barrier)
   unsigned int init_count = ibarrier->init_count;
 
   /* If this was the last woken thread, unlock.  */
-  if (atomic_exchange_and_add (ibarrier->left, 1) == init_count - 1)
+  if (atomic_exchange_and_add (&ibarrier->left, 1) == init_count - 1)
     /* We are done.  */
     lll_unlock (ibarrier->lock);
 

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

             reply	other threads:[~2004-02-19 23:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-19 23:07 Andreas Schwab [this message]
2004-02-20  5:42 ` Ulrich Drepper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jeoerulld3.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=libc-hacker@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).