blob: 6002c53507be55152328caacd3394614daa0dffd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#include "pthread_impl.h"
int pthread_cond_broadcast(pthread_cond_t *c)
{
int w = c->_c_waiters;
if (a_swap(&c->_c_block, 0) || w)
__wake(&c->_c_block, -1, 0);
return 0;
}
|