broadcast a wake-up call to all threads waiting on a condition variable
cc [options] -Kthread file
int cond_broadcast(cond_t *cond);
pointer to condition variable to be broadcast
cond_broadcast wakes up all threads waiting on the condition cond.
If more than one thread is waiting, the order of release from the blocked group
is scheduling policy-specific for bound threads:
Bound threads have priority over multiplexed threads; then
within each category the choice of thread is scheduling-policy-specific.
cond_broadcast has no effect if there are no threads waiting on cond.
A cond_broadcast will be more reliable if the associated mutex
used by waiters is held across the call.
The condition variable denoted by cond must previously have been
initialized (see cond_init(3synch)).
See the description of how to use condition variables
under USAGE on
cond_broadcast returns zero for success
and an error number for failure.
If the following condition is detected,
cond_broadcast returns the corresponding value:
invalid argument specified
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004