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

NAME

6       _lwp_suspend, _lwp_continue - continue or suspend LWP execution
7

SYNOPSIS

9       #include <sys/lwp.h>
10
11       int _lwp_suspend(lwpid_t target_lwp);
12
13
14       int _lwp_continue(lwpid_t target_lwp);
15
16

DESCRIPTION

18       The  _lwp_suspend()  function immediately suspends the execution of the
19       LWP specified by target_lwp. On successful return from  _lwp_suspend(),
20       target_lwp  is  no longer executing. Once a thread is suspended, subse‐
21       quent calls to _lwp_suspend() have no affect.
22
23
24       The _lwp_continue() function resumes the execution of a suspended  LWP.
25       Once  a suspended LWP is continued, subsequent calls to _lwp_continue()
26       have no effect.
27
28
29       A suspended LWP will not be awakened by  a  signal.  The  signal  stays
30       pending until the execution of the LWP is resumed by _lwp_continue().
31

RETURN VALUES

33       Upon  successful  completion, 0 is returned. A non-zero value indicates
34       an error.
35

ERRORS

37       If the following condition occurs, _lwp_suspend()  and  _lwp_continue()
38       fail and return the corresponding value:
39
40       ESRCH    The  target_lwpid  argument  cannot  be  found  in the current
41                process.
42
43

ATTRIBUTES

45       See attributes(5) for descriptions of the following attributes:
46
47
48
49
50       ┌─────────────────────────────┬─────────────────────────────┐
51       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │MT-Level                     │Async-Signal-Safe            │
54       └─────────────────────────────┴─────────────────────────────┘
55

SEE ALSO

57       attributes(5)
58
59
60
61SunOS 5.11                        13 Aug 2001                  _lwp_suspend(2)
Impressum