cnd_broadcast

Defined in header <threads.h>
int cnd_broadcast( cnd_t *cond );
(since C11)

Unblocks all threads that are blocked on condition variable cond at the time of the call. If no threads are blocked on cond, the function does nothing and returns thrd_success.

Parameters

cond - pointer to a condition variable

Return value

thrd_success if successful, thrd_error otherwise.

References

See also

cnd_signal
(C11)
unblocks one thread blocked on a condition variable
(function)
C++ documentation for condition_variable::notify_all
C++ documentation for condition_variable_any::notify_all

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/c/thread/cnd_broadcast