diff options
Diffstat (limited to '05/musl-0.6.0/src/thread/pthread_cond_broadcast.c')
-rw-r--r-- | 05/musl-0.6.0/src/thread/pthread_cond_broadcast.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/05/musl-0.6.0/src/thread/pthread_cond_broadcast.c b/05/musl-0.6.0/src/thread/pthread_cond_broadcast.c new file mode 100644 index 0000000..1d378c0 --- /dev/null +++ b/05/musl-0.6.0/src/thread/pthread_cond_broadcast.c @@ -0,0 +1,8 @@ +#include "pthread_impl.h" + +int pthread_cond_broadcast(pthread_cond_t *c) +{ + c->_c_block = 0; + __wake(&c->_c_block, -1, 0); + return 0; +} |