|
|
#include <sys/lwp.h>
int _lwp_cond_signal(lwp_cond_t cvp);
int _lwp_cond_broadcast(lwp_cond_t *cvp);
_lwp_cond_signal() unblocks one LWP that is blocked on the LWP condition variable pointed to by cvp.
_lwp_cond_broadcast() 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 signalled. 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.
Zero is returned when successful. A non-zero value indicates an error.
If any of the following conditions are detected, _lwp_cond_signal(), and _lwp_cond_broadcast() fail and return the corresponding value:
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97