about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-28 03:47:32 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-28 03:47:32 +0000
commit206a5cdea24117af6052289af84fafe8f50e929f (patch)
tree18434b5e456573b5b276f3ef4dc64861aaaf3226 /nptl
parent567fb22ae371d2d9730cbee4a716d3a091276b55 (diff)
downloadglibc-206a5cdea24117af6052289af84fafe8f50e929f.tar.gz
glibc-206a5cdea24117af6052289af84fafe8f50e929f.tar.xz
glibc-206a5cdea24117af6052289af84fafe8f50e929f.zip
Update.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Banner2
-rw-r--r--nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S4
2 files changed, 4 insertions, 2 deletions
diff --git a/nptl/Banner b/nptl/Banner
index 3fcb18d924..8773a7fdb7 100644
--- a/nptl/Banner
+++ b/nptl/Banner
@@ -1 +1 @@
-NPTL 0.26 by Ulrich Drepper
+NPTL 0.27 by Ulrich Drepper
diff --git a/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S b/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
index 7c27b94623..8348f6e017 100644
--- a/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
+++ b/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
@@ -109,7 +109,9 @@ pthread_barrier_wait:
 	movl	$SYS_futex, %eax
 	ENTER_KERNEL
 
-	/* Release the mutex.  */
+	/* Release the mutex.  We cannot release the lock before
+	   waking the waiting threads since otherwise a new thread might
+	   arrive and gets waken up, too.  */
 	LOCK
 	incl	MUTEX(%ebx)
 	jng	4f