_LWP_COND_SIGNAL(2) System Calls _LWP_COND_SIGNAL(2)
_lwp_cond_signal, _lwp_cond_broadcast - signal a condition variable
#include <sys/lwp.h> int _lwp_cond_signal
); int _lwp_cond_broadcast
function unblocks one LWP that is blocked on the
LWP condition variable pointed to by cvp
function unblocks all LWPs that are blocked on
the LWP condition variable pointed to by cvp
If no LWPs are blocked on the LWP condition variable, then _lwp_cond_signal()
have no effect.
Both functions should be called under the protection of the same LWP
mutex lock that is used with the LWP condition variable being signaled.
Otherwise, the condition variable may be signalled between the test of
the associated condition and blocking in _lwp_cond_wait()
. This can cause
an infinite wait.
Upon successful completion, 0
is returned. A non-zero value indicates an
functions will fail if: EINVAL
argument points to an invalid LWP condition variable. EFAULT
argument points to an invalid address.
SEE ALSO _lwp_cond_wait(2)
December 8, 1995 _LWP_COND_SIGNAL(2)