summaryrefslogtreecommitdiff
path: root/src/thread/pthread_cond_signal.c
blob: a0211287be7dd748b2d9f2cd76352692493e8d26 (plain) (blame)
1
2
3
4
5
6
7
8
#include "pthread_impl.h"

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