This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc/linuxthreads spinlock.c
- From: drepper at sources dot redhat dot com
- To: glibc-cvs at sources dot redhat dot com
- Date: 29 Aug 2002 10:32:19 -0000
- Subject: libc/linuxthreads spinlock.c
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sources.redhat.com 2002-08-29 03:32:19
Modified files:
linuxthreads : spinlock.c
Log message:
(__pthread_lock): Fix spurious wakeup
handling. Don't clear lowest bit of list pointer as sign the thread
is still on the wait list. Don't restart after spurious wakeup
with spinning to get the lock.
(__pthread_unlock): Take set lowest bit into account when handling
pointer to list elements.