the c_has_waiters is lazily updated, temporarily disable the false
alarm code.
This commit is contained in:
parent
6755e2f954
commit
3b8a017442
@ -124,11 +124,13 @@ _pthread_cond_destroy(pthread_cond_t *cond)
|
|||||||
else {
|
else {
|
||||||
cv = *cond;
|
cv = *cond;
|
||||||
THR_UMUTEX_LOCK(curthread, &cv->c_lock);
|
THR_UMUTEX_LOCK(curthread, &cv->c_lock);
|
||||||
|
#if 0
|
||||||
/* Lock the condition variable structure: */
|
/* Lock the condition variable structure: */
|
||||||
if (cv->c_kerncv.c_has_waiters) {
|
if (cv->c_kerncv.c_has_waiters) {
|
||||||
THR_UMUTEX_UNLOCK(curthread, &cv->c_lock);
|
THR_UMUTEX_UNLOCK(curthread, &cv->c_lock);
|
||||||
return (EBUSY);
|
return (EBUSY);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* NULL the caller's pointer now that the condition
|
* NULL the caller's pointer now that the condition
|
||||||
* variable has been destroyed:
|
* variable has been destroyed:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user