repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
powerpc-sf longjmp clobbering of val argument
[musl.git]
/
src
/
thread
/
pthread_cond_broadcast.c
blob
6bfab78f961f7dcd71c40da258065abc0b6bc44d
1
#include
"pthread_impl.h"
2
3
int
pthread_cond_broadcast
(
pthread_cond_t
*
c
)
4
{
5
if
(!
c
->
_c_shared
)
return
__private_cond_signal
(
c
, -
1
);
6
if
(!
c
->
_c_waiters
)
return
0
;
7
a_inc
(&
c
->
_c_seq
);
8
__wake
(&
c
->
_c_seq
, -
1
,
0
);
9
return
0
;
10
}