projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add __sigsetjmp ABI-compat alias for sigsetjmp
[oweals/musl.git]
/
src
/
thread
/
pthread_cond_destroy.c
1
#include "pthread_impl.h"
2
3
int pthread_cond_destroy(pthread_cond_t *c)
4
{
5
int priv = c->_c_mutex != (void *)-1;
6
int cnt;
7
c->_c_destroy = 1;
8
if (c->_c_waiters)
9
__wake(&c->_c_seq, -1, priv);
10
while ((cnt = c->_c_waiters))
11
__wait(&c->_c_waiters, 0, cnt, priv);
12
return 0;
13
}