source: rtems-docs/posix-users/thread_cancellation.rst @ 42d50d7

5
Last change on this file since 42d50d7 was 72a62ad, checked in by Chris Johns <chrisj@…>, on 11/03/16 at 05:58:08

Rename all manuals with an _ to have a -. It helps released naming of files.

  • Property mode set to 100644
File size: 3.3 KB
Line 
1.. comment SPDX-License-Identifier: CC-BY-SA-4.0
2
3.. COMMENT: COPYRIGHT (c) 1988-2002.
4.. COMMENT: On-Line Applications Research Corporation (OAR).
5.. COMMENT: All rights reserved.
6
7Thread Cancellation Manager
8###########################
9
10Introduction
11============
12
13The
14thread cancellation manager is ...
15
16The directives provided by the thread cancellation manager are:
17
18- pthread_cancel_ - Cancel Execution of a Thread
19
20- pthread_setcancelstate_ - Set Cancelability State
21
22- pthread_setcanceltype_ - Set Cancelability Type
23
24- pthread_testcancel_ - Create Cancellation Point
25
26- pthread_cleanup_push_ - Establish Cancellation Handler
27
28- pthread_cleanup_pop_ - Remove Cancellation Handler
29
30Background
31==========
32
33There is currently no text in this section.
34
35Operations
36==========
37
38There is currently no text in this section.
39
40Directives
41==========
42
43This section details the thread cancellation manager's directives.  A
44subsection is dedicated to each of this manager's directives and describes the
45calling sequence, related constants, usage, and status codes.
46
47.. _pthread_cancel:
48
49pthread_cancel - Cancel Execution of a Thread
50---------------------------------------------
51.. index:: pthread_cancel
52.. index:: cancel execution of a thread
53
54**CALLING SEQUENCE:**
55
56.. code-block:: c
57
58    int pthread_cancel(
59    );
60
61**STATUS CODES:**
62
63.. list-table::
64 :class: rtems-table
65
66 * - ``E``
67   - The
68
69**DESCRIPTION:**
70
71**NOTES:**
72
73.. _pthread_setcancelstate:
74
75pthread_setcancelstate - Set Cancelability State
76------------------------------------------------
77.. index:: pthread_setcancelstate
78.. index:: set cancelability state
79
80**CALLING SEQUENCE:**
81
82.. code-block:: c
83
84    int pthread_setcancelstate(
85    );
86
87**STATUS CODES:**
88
89.. list-table::
90 :class: rtems-table
91
92 * - ``E``
93   - The
94
95**DESCRIPTION:**
96
97**NOTES:**
98
99.. _pthread_setcanceltype:
100
101pthread_setcanceltype - Set Cancelability Type
102----------------------------------------------
103.. index:: pthread_setcanceltype
104.. index:: set cancelability type
105
106**CALLING SEQUENCE:**
107
108.. code-block:: c
109
110    int pthread_setcanceltype(
111    );
112
113**STATUS CODES:**
114
115.. list-table::
116 :class: rtems-table
117
118 * - ``E``
119   - The
120
121**DESCRIPTION:**
122
123**NOTES:**
124
125.. _pthread_testcancel:
126
127pthread_testcancel - Create Cancellation Point
128----------------------------------------------
129.. index:: pthread_testcancel
130.. index:: create cancellation point
131
132**CALLING SEQUENCE:**
133
134.. code-block:: c
135
136    int pthread_testcancel(
137    );
138
139**STATUS CODES:**
140
141.. list-table::
142 :class: rtems-table
143
144 * - ``E``
145   - The
146
147**DESCRIPTION:**
148
149**NOTES:**
150
151.. _pthread_cleanup_push:
152
153pthread_cleanup_push - Establish Cancellation Handler
154-----------------------------------------------------
155.. index:: pthread_cleanup_push
156.. index:: establish cancellation handler
157
158**CALLING SEQUENCE:**
159
160.. code-block:: c
161
162    int pthread_cleanup_push(
163    );
164
165**STATUS CODES:**
166
167.. list-table::
168 :class: rtems-table
169
170 * - ``E``
171   - The
172
173**DESCRIPTION:**
174
175**NOTES:**
176
177.. _pthread_cleanup_pop:
178
179pthread_cleanup_pop - Remove Cancellation Handler
180-------------------------------------------------
181.. index:: pthread_cleanup_pop
182.. index:: remove cancellation handler
183
184**CALLING SEQUENCE:**
185
186.. code-block:: c
187
188    int pthread_cleanup_push(
189    );
190
191**STATUS CODES:**
192
193.. list-table::
194 :class: rtems-table
195
196 * - ``E``
197   - The
198
199**DESCRIPTION:**
200
201**NOTES:**
Note: See TracBrowser for help on using the repository browser.