Query: _lwp_cond_signal
OS: opensolaris
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
_lwp_cond_signal(2) System Calls _lwp_cond_signal(2)NAME_lwp_cond_signal, _lwp_cond_broadcast - signal a condition variableSYNOPSIS#include <sys/lwp.h> int _lwp_cond_signal(lwp_cond_t *cvp); int _lwp_cond_broadcast(lwp_cond_t *cvp);DESCRIPTIONThe _lwp_cond_signal() function unblocks one LWP that is blocked on the LWP condition variable pointed to by cvp. The _lwp_cond_broadcast() 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() and _lwp_cond_broadcast() 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 sig- naled. 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.RETURN VALUESUpon successful completion, 0 is returned. A non-zero value indicates an error.ERRORSThe _lwp_cond_signal() and _lwp_cond_broadcast() functions will fail if: EINVAL The cvp argument points to an invalid LWP condition variable. EFAULT The cvp argument points to an invalid address.SEE ALSO_lwp_cond_wait(2), _lwp_mutex_lock(2) SunOS 5.11 8 Dec 1995 _lwp_cond_signal(2)
Related Man Pages |
---|
_lwp_cond_timedwait(2) - opensolaris |
_lwp_cond_reltimedwait(2) - opensolaris |
_lwp_cond_wait(2) - opensolaris |
_lwp_cond_broadcast(2) - sunos |
_lwp_mutex_unlock(2) - sunos |
Similar Topics in the Unix Linux Community |
---|
if...elif...fi condition in Unix |
need help in IF condition!! |
Brain Teaser Extended |
How to check a list of 4-5 strings in IF condition? |
Simple negated test condition |