cnd_broadcast(3) | Library Functions Manual | cnd_broadcast(3) |
NAME
cnd_broadcast
—
broadcast signal a condition.
SYNOPSIS
library “threads”
#include <threads.h>
int
cnd_broadcast
(cnd_t
*cnd);
DESCRIPTION
The function
cnd_broadcast
()
broadcasts to all threads waiting on the given condition variable
cnd to wake up and check the condition variable
again.
The thread calling
cnd_broadcast
()
does not need to have acquired the condition variable signaled.
RETURN VALUES
Upon success cnd_broadcast
() returns
thrd_success, otherwise
thrd_error will be returned.
SEE ALSO
cnd_init(3) cnd_destroy(3) cnd_signal(3) cnd_timedwait(3) cnd_wait(3)
HISTORY
The cnd_broadcast
() function first
appeared in the C11 standard ISO/IEC 9899:2011.
AUTHORS
Jan Adelsbach <jan@jadelsbach.de>
May 9, 2020 | Debian |