1_lwp_cond_signal(2)              System Calls              _lwp_cond_signal(2)
2
3
4

NAME

6       _lwp_cond_signal, _lwp_cond_broadcast - signal a condition variable
7

SYNOPSIS

9       #include <sys/lwp.h>
10
11       int _lwp_cond_signal(lwp_cond_t *cvp);
12
13
14       int _lwp_cond_broadcast(lwp_cond_t *cvp);
15
16

DESCRIPTION

18       The _lwp_cond_signal() function unblocks one LWP that is blocked on the
19       LWP condition variable pointed to by cvp.
20
21
22       The _lwp_cond_broadcast() function unblocks all LWPs that  are  blocked
23       on the LWP condition variable pointed to by cvp.
24
25
26       If   no   LWPs   are  blocked  on  the  LWP  condition  variable,  then
27       _lwp_cond_signal() and _lwp_cond_broadcast() have no effect.
28
29
30       Both functions should be called under the protection of  the  same  LWP
31       mutex  lock  that  is  used with the LWP condition variable being  sig‐
32       naled. Otherwise, the condition variable may be signalled  between  the
33       test of the associated condition and blocking in _lwp_cond_wait(). This
34       can cause an infinite wait.
35

RETURN VALUES

37       Upon successful completion, 0 is returned. A non-zero  value  indicates
38       an error.
39

ERRORS

41       The  _lwp_cond_signal()  and  _lwp_cond_broadcast() functions will fail
42       if:
43
44       EINVAL    The cvp argument points to an invalid LWP condition variable.
45
46
47       EFAULT    The cvp argument points to an invalid address.
48
49

SEE ALSO

51       _lwp_cond_wait(2), _lwp_mutex_lock(2)
52
53
54
55SunOS 5.11                        8 Dec 1995               _lwp_cond_signal(2)
Impressum