blob: 5fd72f903fdf27f70f3580b462d215fa80519028 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#include "pthread_impl.h"
int pthread_cond_signal(pthread_cond_t *c)
{
if (!c->_c_waiters) return 0;
a_inc(&c->_c_seq);
if (c->_c_waiters) __wake(&c->_c_seq, 1, c->_c_mutex!=(void*)-1);
return 0;
}
|