aboutsummaryrefslogtreecommitdiff
path: root/src/thread/pthread_cond_timedwait.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-25 21:14:40 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-25 21:14:40 -0400
commitc11d1e696723f41d7873332e51fb6858b417fa5f (patch)
tree4109f54cb4bd53b6e21086bf905d53aa19fe7a28 /src/thread/pthread_cond_timedwait.c
parentoptimize cond waiter move using atomic swap instead of cas loop (diff)
downloadgrovel-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