Because of the clear separation for private pthread_cond_t these interfaces are quite simple and direct.
11 lines
260 B
C
11 lines
260 B
C
#include <threads.h>
|
|
|
|
int __private_cond_signal(cnd_t *, int);
|
|
|
|
int cnd_broadcast(cnd_t *c)
|
|
{
|
|
/* This internal function never fails, and always returns zero,
|
|
* which matches the value thrd_success is defined with. */
|
|
return __private_cond_signal(c, -1);
|
|
}
|