From dcc0da53c266b2e6c3d54892919112ee0106c88c Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 24 Aug 2001 04:44:27 +0000 Subject: * condvar.c (pthread_cond_destroy): Remove cv element that is no longer used. * implement.h: Likewise. --- condvar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'condvar.c') diff --git a/condvar.c b/condvar.c index ff1332e..e2d8801 100644 --- a/condvar.c +++ b/condvar.c @@ -495,7 +495,6 @@ pthread_cond_init (pthread_cond_t * cond, const pthread_condattr_t * attr) } cv->nWaitersBlocked = 0; - cv->nWaitersUnblocked = 0; cv->nWaitersToUnblock = 0; cv->nWaitersGone = 0; @@ -658,7 +657,7 @@ pthread_cond_destroy (pthread_cond_t * cond) /* * Check whether cv is still busy (still has waiters) */ - if (cv->nWaitersBlocked - cv->nWaitersGone - cv->nWaitersUnblocked > 0) + if (cv->nWaitersBlocked > cv->nWaitersGone) { if (sem_post(&(cv->semBlockLock)) != 0) { -- cgit v1.2.3