1 | .. comment SPDX-License-Identifier: CC-BY-SA-4.0 |
---|
2 | |
---|
3 | Thread Cancellation |
---|
4 | ################### |
---|
5 | |
---|
6 | Thread Cancellation Overview |
---|
7 | ============================ |
---|
8 | |
---|
9 | Cancelability States |
---|
10 | -------------------- |
---|
11 | |
---|
12 | .. code:: c |
---|
13 | |
---|
14 | PTHREAD_CANCEL_DISABLE, Constant, Implemented |
---|
15 | PTHREAD_CANCEL_ENABLE, Constant, Implemented |
---|
16 | PTHREAD_CANCEL_ASYNCHRONOUS, Constant, Implemented |
---|
17 | PTHREAD_CANCEL_DEFERRED, Constant, Implemented |
---|
18 | |
---|
19 | Cancellation Points |
---|
20 | ------------------- |
---|
21 | |
---|
22 | Thread Cancellation Cleanup Handlers |
---|
23 | ------------------------------------ |
---|
24 | |
---|
25 | .. code:: c |
---|
26 | |
---|
27 | PTHREAD_CANCELED, Constant, Unimplemented |
---|
28 | |
---|
29 | Async-Cancel Safety |
---|
30 | ------------------- |
---|
31 | |
---|
32 | Thread Cancellation Functions |
---|
33 | ============================= |
---|
34 | |
---|
35 | Canceling Execution of a Thread |
---|
36 | ------------------------------- |
---|
37 | |
---|
38 | .. code:: c |
---|
39 | |
---|
40 | pthread_cancel(), Function, Implemented |
---|
41 | |
---|
42 | Setting Cancelability State |
---|
43 | --------------------------- |
---|
44 | |
---|
45 | .. code:: c |
---|
46 | |
---|
47 | pthread_setcancelstate(), Function, Implemented |
---|
48 | pthread_setcanceltype(), Function, Implemented |
---|
49 | pthread_testcancel(), Function, Implemented |
---|
50 | |
---|
51 | Establishing Cancellation Handlers |
---|
52 | ---------------------------------- |
---|
53 | |
---|
54 | .. code:: c |
---|
55 | |
---|
56 | pthread_cleanup_push(), Function, Implemented |
---|
57 | pthread_cleanup_pop(), Function, Implemented |
---|
58 | |
---|
59 | Language-Independent Cancellation Functionality |
---|
60 | =============================================== |
---|
61 | |
---|
62 | Requesting Cancellation |
---|
63 | ----------------------- |
---|
64 | |
---|
65 | Associating Cleanup Code With Scopes |
---|
66 | ------------------------------------ |
---|
67 | |
---|
68 | Controlling Cancellation Within Scopes |
---|
69 | -------------------------------------- |
---|
70 | |
---|
71 | Defined Cancellation Sequence |
---|
72 | ----------------------------- |
---|
73 | |
---|
74 | List of Cancellation Points |
---|
75 | --------------------------- |
---|
76 | |
---|
77 | .. COMMENT: DO NOT EDIT - AUTOMATICALLY GENERATED!!! |
---|
78 | |
---|