chsvlib
chsv helper source code

◆ chsv_cnd_broadcast()

int Chusov::ExecutionControl::chsv_cnd_broadcast ( chsv_cnd_t pCnd)
noexcept

Unblocks all of the threads that are blocked on the specified condition variable at the time of the call.

Parameters
[in]pCndis a pointer to a descriptor of a condition variable to signal.
Returns
On success the function returns chsv_thrd_success. On failure the function sets the corresponding errno code and returns chsv_thrd_error.

If no threads are waiting for the condition variable object at the time of the call, the function does nothing and returns success.

The function implements a behaviour of the cnd_broadcast function defined in the ISO/IEC 9899:2011 (aka C11) standard.

See also
chsv_cnd_signal;
chsv_cnd_wait;
chsv_cnd_timedwait;
chsv_cnd_timedwaitfor.