1PTHREAD_TESTCANCEL(3) Linux Programmer's Manual PTHREAD_TESTCANCEL(3)
2
3
4
6 pthread_testcancel - request delivery of any pending cancellation
7 request
8
10 #include <pthread.h>
11
12 void pthread_testcancel(void);
13
14 Compile and link with -pthread.
15
17 Calling pthread_testcancel() creates a cancellation point within the
18 calling thread, so that a thread that is otherwise executing code that
19 contains no cancellation points will respond to a cancellation request.
20
21 If cancelability is disabled (using pthread_setcancelstate(3)), or no
22 cancellation request is pending, then a call to pthread_testcancel()
23 has no effect.
24
26 This function does not return a value. If the calling thread is can‐
27 celed as a consequence of a call to this function, then the function
28 does not return.
29
31 This function always succeeds.
32
34 POSIX.1-2001.
35
37 See pthread_cleanup_push(3).
38
40 pthread_cancel(3), pthread_cleanup_push(3), pthread_setcancelstate(3),
41 pthreads(7)
42
44 This page is part of release 3.53 of the Linux man-pages project. A
45 description of the project, and information about reporting bugs, can
46 be found at http://www.kernel.org/doc/man-pages/.
47
48
49
50Linux 2012-04-14 PTHREAD_TESTCANCEL(3)