Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
f76d51a1cca1236efc50ee60c0bad3354079b854
/
.
/
src
/
thread
/
pthread_cond_broadcast.c
blob: 6bfab78f961f7dcd71c40da258065abc0b6bc44d [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_cond_broadcast
(
pthread_cond_t
*
c
)
{
if
(!
c
->
_c_shared
)
return
__private_cond_signal
(
c
,
-
1
);
if
(!
c
->
_c_waiters
)
return
0
;
a_inc
(&
c
->
_c_seq
);
__wake
(&
c
->
_c_seq
,
-
1
,
0
);
return
0
;
}