This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc/nptl/sysdeps/pthread pthread_cond_wait.c
- From: drepper at sourceware dot org
- To: glibc-cvs at sources dot redhat dot com
- Date: 2 Sep 2004 18:49:34 -0000
- Subject: libc/nptl/sysdeps/pthread pthread_cond_wait.c
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sources.redhat.com 2004-09-02 18:49:34
Modified files:
nptl/sysdeps/pthread: pthread_cond_wait.c
Log message:
(__condvar_cleanup): Decrement __nwaiters. If pthread_cond_destroy
has been called and this is the last waiter, signal
pthread_cond_destroy caller and avoid using the pthread_cond_t
structure after unlock.
(__pthread_cond_wait): Increment __nwaiters in the beginning,
decrement it when leaving. If pthread_cond_destroy has been called
and this is the last waiter, signal pthread_cond_destroy caller.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/nptl/sysdeps/pthread/pthread_cond_wait.c.diff?cvsroot=glibc&r1=1.15&r2=1.16