diff options
author | Thomas Pfaff <tpfaff@gmx.net> | 2003-04-15 20:14:12 +0000 |
---|---|---|
committer | Thomas Pfaff <tpfaff@gmx.net> | 2003-04-15 20:14:12 +0000 |
commit | ffb576fbf2440548e717bf7f37b3aafa48ee2fbc (patch) | |
tree | aeb62e60f0b07c0306c3f0e7a5ae7d5a03e216b8 /winsup/w32api/lib/uuid.c | |
parent | cfd2c7bea8bcc4d04a1ace959fed7fd2e1ba3784 (diff) | |
download | cygnal-ffb576fbf2440548e717bf7f37b3aafa48ee2fbc.tar.gz cygnal-ffb576fbf2440548e717bf7f37b3aafa48ee2fbc.tar.bz2 cygnal-ffb576fbf2440548e717bf7f37b3aafa48ee2fbc.zip |
Fix a race in pthread_rwlock caused by simultanoues unlock and cancelation.
* thread.h (pthread_rwlock::release): New method.
* thread.cc (pthread_rwlock::unlock): Use release to signal
waiting threads.
(pthread_rwlock::rdlock_cleanup): Signal waiting threads after a
cancelation.
(pthread_rwlock::wrlock_cleanup): Ditto.
Diffstat (limited to 'winsup/w32api/lib/uuid.c')
0 files changed, 0 insertions, 0 deletions