Sign in
cobalt
/
cobalt
/
f9bc0139df6e6eb149345ab9b6ffcc40603fc09f
/
.
/
third_party
/
musl
/
src
/
thread
/
pthread_cond_signal.c
blob: 575ad54bc0509501068d9e90a22d16748d7312c2 [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_cond_signal
(
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
;
}