public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Fix pthread_barrier_wait
@ 2004-02-19 23:07 Andreas Schwab
  2004-02-20  5:42 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2004-02-19 23:07 UTC (permalink / raw)
  To: libc-hacker

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."

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fix pthread_barrier_wait
  2004-02-19 23:07 Fix pthread_barrier_wait Andreas Schwab
@ 2004-02-20  5:42 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2004-02-20  5:42 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: libc-hacker

Andreas Schwab wrote:

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

Applied.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-20  5:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-19 23:07 Fix pthread_barrier_wait Andreas Schwab
2004-02-20  5:42 ` Ulrich Drepper

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).