fix ABA race in cond vars, improve them overall
[musl] / src / thread / pthread_cond_signal.c
1 #include "pthread_impl.h"
2
3 int pthread_cond_signal(pthread_cond_t *c)
4 {
5         a_store(&c->_c_block, 0);
6         if (c->_c_waiters) __wake(&c->_c_block, 1, 0);
7         return 0;
8 }