revert previous change in cond var waiter move
authorRich Felker <dalias@aerifal.cx>
Mon, 26 Sep 2011 01:14:40 +0000 (21:14 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 26 Sep 2011 01:14:40 +0000 (21:14 -0400)
commitc11d1e696723f41d7873332e51fb6858b417fa5f
tree4109f54cb4bd53b6e21086bf905d53aa19fe7a28
parentcf940165d4caf132405a3fe3df58b57eb735ac04
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.
src/thread/pthread_cond_broadcast.c