From 206a5cdea24117af6052289af84fafe8f50e929f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 28 Feb 2003 03:47:32 +0000 Subject: Update. --- nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nptl/sysdeps/unix/sysv/linux') 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 -- cgit v1.2.3-70-g09d2