source: rtems/doc/posix_users/key.t @ 0eded82

4.104.114.84.95
Last change on this file since 0eded82 was 3dddcce, checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/99 at 19:38:35

Added descriptions for bullet list and routine section headings.

  • Property mode set to 100644
File size: 2.4 KB
Line 
1@c
2@c COPYRIGHT (c) 1988-1999.
3@c On-Line Applications Research Corporation (OAR).
4@c All rights reserved.
5@c
6@c $Id$
7@c
8
9@chapter Key Manager
10
11@section Introduction
12
13The key manager ...
14
15The directives provided by the key manager are:
16
17@itemize @bullet
18@item @code{pthread_key_create} - Create Thread Specific Data Key
19@item @code{pthread_key_delete} - Delete Thread Specific Data Key
20@item @code{pthread_setspecific} - Set Thread Specific Key Value
21@item @code{pthread_getspecific} - Get Thread Specific Key Value
22@end itemize
23
24@section Background
25
26There is currently no text in this section.
27
28@section Operations
29
30There is currently no text in this section.
31
32@section Directives
33
34This section details the key manager's directives.
35A subsection is dedicated to each of this manager's directives
36and describes the calling sequence, related constants, usage,
37and status codes.
38
39@c
40@c
41@c
42@page
43@subsection pthread_key_create - Create Thread Specific Data Key
44
45@subheading CALLING SEQUENCE:
46
47@example
48#include <pthread.h>
49
50int pthread_key_create(
51  pthread_key_t *key,
52  void (*destructor)( void )
53);
54@end example
55
56@subheading STATUS CODES:
57
58@table @b
59@item EAGAIN
60There were not enough resources available to create another key.
61
62@item ENOMEM
63Insufficient memory exists to create the key.
64
65@end table
66
67@c
68@c
69@c
70@page
71@subsection pthread_key_delete - Delete Thread Specific Data Key
72
73@subheading CALLING SEQUENCE:
74
75@example
76#include <pthread.h>
77
78int pthread_key_delete(
79pthread_key_t key,
80);
81@end example
82
83@subheading STATUS CODES:
84
85@table @b
86@item EINVAL
87The key was invalid
88
89@end table
90
91@subheading DESCRIPTION:
92
93@subheading NOTES:
94
95@c
96@c
97@c
98@page
99@subsection pthread_setspecific - Set Thread Specific Key Value
100
101@subheading CALLING SEQUENCE:
102
103@example
104#include <pthread.h>
105
106int pthread_setspecific(
107pthread_key_t key,
108const void *value
109);
110@end example
111
112@subheading STATUS CODES:
113@table @b
114@item EINVAL
115The specified key is invalid.
116
117@end table
118
119@subheading DESCRIPTION:
120
121@subheading NOTES:
122
123@c
124@c
125@c
126@page
127@subsection pthread_getspecific - Get Thread Specific Key Value
128
129@subheading CALLING SEQUENCE:
130
131@example
132#include <pthread.h>
133
134void *pthread_getspecific(
135pthread_key_t key
136);
137@end example
138
139@subheading STATUS CODES:
140@table @b
141@item NULL
142There is no thread-specific data associated with the specified key.
143
144@item non-NULL
145The data associated with the specified key.
146
147@end table
148
149@subheading DESCRIPTION:
150
151@subheading NOTES:
152
Note: See TracBrowser for help on using the repository browser.