about summary refs log tree commit diff
path: root/src/thread/pthread_cond_broadcast.c
blob: dec91164065d844b67b2af27d8994b24e64e2d53 (plain) (blame)
1
2
3
4
5
6
7
8
#include "pthread_impl.h"

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