mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-26 04:31:03 +00:00
htl: make pthread_cond_destroy return EBUSY on waiters
This commit is contained in:
parent
cd94860c56
commit
faae4b2bdd
@ -22,7 +22,14 @@
|
||||
int
|
||||
__pthread_cond_destroy (pthread_cond_t *cond)
|
||||
{
|
||||
return 0;
|
||||
int ret = 0;
|
||||
|
||||
__pthread_spin_lock (&cond->__lock);
|
||||
if (cond->__queue)
|
||||
ret = EBUSY;
|
||||
__pthread_spin_unlock (&cond->__lock);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
strong_alias (__pthread_cond_destroy, pthread_cond_destroy);
|
||||
|
Loading…
Reference in New Issue
Block a user