the c_has_waiters is lazily updated, temporarily disable the false

alarm code.
This commit is contained in:
David Xu 2006-12-05 07:23:58 +00:00
parent 6755e2f954
commit 3b8a017442

View File

@ -124,11 +124,13 @@ _pthread_cond_destroy(pthread_cond_t *cond)
else {
cv = *cond;
THR_UMUTEX_LOCK(curthread, &cv->c_lock);
#if 0
/* Lock the condition variable structure: */
if (cv->c_kerncv.c_has_waiters) {
THR_UMUTEX_UNLOCK(curthread, &cv->c_lock);
return (EBUSY);
}
#endif
/*
* NULL the caller's pointer now that the condition
* variable has been destroyed: