diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-09-25 21:14:40 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-09-25 21:14:40 -0400 |
commit | c11d1e696723f41d7873332e51fb6858b417fa5f (patch) | |
tree | 4109f54cb4bd53b6e21086bf905d53aa19fe7a28 /src/thread/pthread_cond_timedwait.c | |
parent | optimize cond waiter move using atomic swap instead of cas loop (diff) | |
download | grovel-c11d1e696723f41d7873332e51fb6858b417fa5f.tar.gz grovel-c11d1e696723f41d7873332e51fb6858b417fa5f.tar.xz |
revert previous change in cond var waiter move
using swap has a race condition: the waiters must be added to the
mutex waiter count *before* they are taken off the cond var waiter
count, or wake events can be lost.
Diffstat (limited to 'src/thread/pthread_cond_timedwait.c')
0 files changed, 0 insertions, 0 deletions