1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
12 >Thread Cancellation [POSIX Section 18]</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="POSIX Standard Support"
23 HREF="posix-standard-support.html"><LINK
25 TITLE="Thread-Specific Data [POSIX Section 17]"
26 HREF="posix-thread-specific-data.html"><LINK
28 TITLE="Non-POSIX Functions"
29 HREF="posix-non-posix-functions.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="posix-thread-specific-data.html"
65 >Chapter 31. POSIX Standard Support</TD
71 HREF="posix-non-posix-functions.html"
85 NAME="POSIX-THREAD-CANCELLATION">Thread Cancellation [POSIX Section 18]</H1
91 NAME="AEN13302">Functions Implemented</H2
100 >int pthread_cancel(pthread_t thread);
101 int pthread_setcancelstate(int state, int *oldstate);
102 int pthread_setcanceltype(int type, int *oldtype);
103 void pthread_testcancel(void);
104 void pthread_cleanup_push( void (*routine)(void *),
106 void pthread_cleanup_pop( int execute);</PRE
116 NAME="AEN13305">Functions Omitted</H2
125 NAME="AEN13308">Notes</H2
127 >Asynchronous cancellation is only partially implemented. In
128 particular, cancellation may occur in unexpected places in some
129 functions. It is strongly recommended that only synchronous
130 cancellation be used. </P
138 SUMMARY="Footer navigation table"
149 HREF="posix-thread-specific-data.html"
167 HREF="posix-non-posix-functions.html"
177 >Thread-Specific Data [POSIX Section 17]</TD
183 HREF="posix-standard-support.html"
191 >Non-POSIX Functions</TD