☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
thread
/
pthread_cond_broadcast.c
☽
☼
libc-top-half/musl/src/thread/pthread_cond_broadcast.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
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
}