summaryrefslogblamecommitdiff
path: root/src/thread/pthread_cond_signal.c
blob: b26b8ce55e5507dc28b28e0f38595388295e3f7f (plain) (tree)
1
2
3
4
5
6
7
8



                                          

                                                      

                 
#include "pthread_impl.h"

int pthread_cond_signal(pthread_cond_t *c)
{
	a_store(&c->_c_block, 0);
	if (c->_c_waiters) __wake(&c->_c_block, 1, 0);
	return 0;
}