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-Specific Data [POSIX Section 17]</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 Management [POSIX Section 16]"
26 HREF="posix-thread-management.html"><LINK
28 TITLE="Thread Cancellation [POSIX Section 18]"
29 HREF="posix-thread-cancellation.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="posix-thread-management.html"
65 >Chapter 31. POSIX Standard Support</TD
71 HREF="posix-thread-cancellation.html"
85 NAME="POSIX-THREAD-SPECIFIC-DATA">Thread-Specific Data [POSIX Section 17]</H1
91 NAME="AEN13287">Functions Implemented</H2
100 >int pthread_key_create(pthread_key_t *key,
101 void (*destructor)(void *));
102 int pthread_setspecific(pthread_key_t key, const void *pointer);
103 void *pthread_getspecific(pthread_key_t key);
104 int pthread_key_delete(pthread_key_t key);</PRE
114 NAME="AEN13290">Functions Omitted</H2
123 NAME="AEN13293">Notes</H2
129 > The value of PTHREAD_DESTRUCTOR_ITERATIONS is
131 CYGNUM_POSIX_PTHREAD_DESTRUCTOR_ITERATIONS
132 option. This controls the number of times that a key destructor
133 will be called while the data item remains non-NULL.
138 > The value of PTHREAD_KEYS_MAX is provided
139 by the CYGNUM_POSIX_PTHREAD_KEYS_MAX
140 option. This defines the maximum number of per-thread data items
141 supported. The POSIX standard calls for this to be a minimum of
142 128, which is rather large for an embedded system. The default
143 value for this option is set to 128 for compatibility but it
144 should be reduced to a more usable value.
155 SUMMARY="Footer navigation table"
166 HREF="posix-thread-management.html"
184 HREF="posix-thread-cancellation.html"
194 >Thread Management [POSIX Section 16]</TD
200 HREF="posix-standard-support.html"
208 >Thread Cancellation [POSIX Section 18]</TD