diff options
author | bje <bje> | 1998-10-29 21:40:46 +0000 |
---|---|---|
committer | bje <bje> | 1998-10-29 21:40:46 +0000 |
commit | 47d04bda4e14c8aef0c3fa7e8ae64e690b25fb66 (patch) | |
tree | 67dfd866a5bc7c16548e5029401c3b4387dfa43a | |
parent | e0b68aae21da8697ef0f4f3924ea29edb0e89582 (diff) |
1998-10-30 Ben Elliston <bje@cygnus.com>
* condvar.c (cond_wait): Fix semantic error. Test for equality
instead of making an assignment.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | condvar.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +1998-10-30 Ben Elliston <bje@cygnus.com> + + * condvar.c (cond_wait): Fix semantic error. Test for equality + instead of making an assignment. + Fri Oct 30 15:15:50 1998 Ross Johnson <rpj@swan.canberra.edu.au> * cleanup.c (_pthread_handler_push): Fixed bug appending new @@ -107,7 +107,7 @@ cond_wait(pthread_cond_t *cv, pthread_mutex_t *mutex, DWORD abstime) pthread_mutex_unlock (&cv->waiters_count_lock); /* Some thread called pthread_cond_broadcast(). */ - if ((result = WAIT_OBJECT_0 + BROADCAST) && last_waiter) + if ((result == WAIT_OBJECT_0 + BROADCAST) && last_waiter) { /* We're the last waiter to be notified, so reset the manual event. */ |