summaryrefslogtreecommitdiff
path: root/condvar.c
diff options
context:
space:
mode:
authorrpj <rpj>2001-08-23 07:50:16 +0000
committerrpj <rpj>2001-08-23 07:50:16 +0000
commit882ec36f8d033e07d3bb272ee22554314226ea01 (patch)
tree9eabe937ef2f9b3e0cfd433a57ee82d0009d7860 /condvar.c
parent5a1180bf7794e76dc7340db17388fb3f7ab44678 (diff)
*** empty log message ***
Diffstat (limited to 'condvar.c')
-rw-r--r--condvar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/condvar.c b/condvar.c
index 2c42c65..ff1332e 100644
--- a/condvar.c
+++ b/condvar.c
@@ -658,7 +658,7 @@ pthread_cond_destroy (pthread_cond_t * cond)
/*
* Check whether cv is still busy (still has waiters)
*/
- if (cv->nWaitersBlocked > cv->nWaitersGone)
+ if (cv->nWaitersBlocked - cv->nWaitersGone - cv->nWaitersUnblocked > 0)
{
if (sem_post(&(cv->semBlockLock)) != 0)
{