OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [doc/] [posix_users/] [cond.t] - Blame information for rev 1780

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
@c
2
@c COPYRIGHT (c) 1988-2002.
3
@c On-Line Applications Research Corporation (OAR).
4
@c All rights reserved.
5
@c
6
@c cond.t,v 1.7 2002/01/17 21:47:45 joel Exp
7
@c
8
 
9
@chapter Condition Variable Manager
10
 
11
@section Introduction
12
 
13
The condition variable manager ...
14
 
15
The directives provided by the condition variable manager are:
16
 
17
@itemize @bullet
18
@item @code{pthread_condattr_init} - Initialize a Condition Variable Attribute Set
19
@item @code{pthread_condattr_destroy} - Destroy a Condition Variable Attribute Set
20
@item @code{pthread_condattr_setpshared} - Set Process Shared Attribute
21
@item @code{pthread_condattr_getpshared} - Get Process Shared Attribute
22
@item @code{pthread_cond_init} - Initialize a Condition Variable
23
@item @code{pthread_cond_destroy} - Destroy a Condition Variable
24
@item @code{pthread_cond_signal} - Signal a Condition Variable
25
@item @code{pthread_cond_broadcast} - Broadcast a Condition Variable
26
@item @code{pthread_cond_wait} - Wait on a Condition Variable
27
@item @code{pthread_cond_timedwait} - With with Timeout a Condition Variable
28
@end itemize
29
 
30
@section Background
31
 
32
There is currently no text in this section.
33
 
34
@section Operations
35
 
36
There is currently no text in this section.
37
 
38
@section Directives
39
 
40
This section details the condition variable manager's directives.
41
A subsection is dedicated to each of this manager's directives
42
and describes the calling sequence, related constants, usage,
43
and status codes.
44
 
45
@c
46
@c
47
@c
48
@page
49
@subsection pthread_condattr_init - Initialize a Condition Variable Attribute Set
50
 
51
@findex pthread_condattr_init
52
@cindex  initialize a condition variable attribute set
53
 
54
@subheading CALLING SEQUENCE:
55
 
56
@example
57
#include 
58
 
59
int pthread_condattr_init(
60
  pthread_condattr_t *attr
61
);
62
@end example
63
 
64
@subheading STATUS CODES:
65
@table @b
66
@item ENOMEM
67
Insufficient memory is available to initialize the condition variable
68
attributes object.
69
 
70
@end table
71
 
72
@subheading DESCRIPTION:
73
 
74
@subheading NOTES:
75
 
76
@c
77
@c
78
@c
79
@page
80
@subsection pthread_condattr_destroy - Destroy a Condition Variable Attribute Set
81
 
82
@findex pthread_condattr_destroy
83
@cindex  destroy a condition variable attribute set
84
 
85
@subheading CALLING SEQUENCE:
86
 
87
@example
88
#include 
89
 
90
int pthread_condattr_destroy(
91
  pthread_condattr_t *attr
92
);
93
@end example
94
 
95
@subheading STATUS CODES:
96
@table @b
97
@item EINVAL
98
The attribute object specified is invalid.
99
 
100
@end table
101
 
102
@subheading DESCRIPTION:
103
 
104
@subheading NOTES:
105
 
106
@c
107
@c
108
@c
109
@page
110
@subsection pthread_condattr_setpshared - Set Process Shared Attribute
111
 
112
@findex pthread_condattr_setpshared
113
@cindex  set process shared attribute
114
 
115
@subheading CALLING SEQUENCE:
116
 
117
@example
118
#include 
119
 
120
int pthread_condattr_setpshared(
121
  pthread_condattr_t *attr,
122
  int                 pshared
123
);
124
@end example
125
 
126
@subheading STATUS CODES:
127
 
128
@table @b
129
@item EINVAL
130
Invalid argument passed.
131
 
132
@end table
133
 
134
@subheading DESCRIPTION:
135
 
136
@subheading NOTES:
137
 
138
@c
139
@c
140
@c
141
@page
142
@subsection pthread_condattr_getpshared - Get Process Shared Attribute
143
 
144
@findex pthread_condattr_getpshared
145
@cindex  get process shared attribute
146
 
147
@subheading CALLING SEQUENCE:
148
 
149
@example
150
#include 
151
 
152
int pthread_condattr_getpshared(
153
  const pthread_condattr_t *attr,
154
  int                      *pshared
155
);
156
@end example
157
 
158
@subheading STATUS CODES:
159
 
160
@table @b
161
@item EINVAL
162
Invalid argument passed.
163
 
164
@end table
165
 
166
@subheading DESCRIPTION:
167
 
168
@subheading NOTES:
169
 
170
 
171
@c
172
@c
173
@c
174
@page
175
@subsection pthread_cond_init - Initialize a Condition Variable
176
 
177
@findex pthread_cond_init
178
@cindex  initialize a condition variable
179
 
180
@subheading CALLING SEQUENCE:
181
 
182
@example
183
#include 
184
 
185
int pthread_cond_init(
186
  pthread_cond_t           *cond,
187
  const pthread_condattr_t *attr
188
);
189
@end example
190
 
191
@subheading STATUS CODES:
192
@table @b
193
@item EAGAIN
194
The system lacked a resource other than memory necessary to create the
195
initialize the condition variable object.
196
 
197
@item ENOMEM
198
Insufficient memory is available to initialize the condition variable object.
199
 
200
@item EBUSY
201
The specified condition variable has already been initialized.
202
 
203
@item EINVAL
204
The specified attribute value is invalid.
205
 
206
@end table
207
 
208
@subheading DESCRIPTION:
209
 
210
@subheading NOTES:
211
 
212
@c
213
@c
214
@c
215
@page
216
@subsection pthread_cond_destroy - Destroy a Condition Variable
217
 
218
@findex pthread_cond_destroy
219
@cindex  destroy a condition variable
220
 
221
@subheading CALLING SEQUENCE:
222
 
223
@example
224
#include 
225
 
226
int pthread_cond_destroy(
227
  pthread_cond_t *cond
228
);
229
@end example
230
 
231
@subheading STATUS CODES:
232
@table @b
233
@item EINVAL
234
The specified condition variable is invalid.
235
 
236
@item EBUSY
237
The specified condition variable is currently in use.
238
 
239
@end table
240
 
241
@subheading DESCRIPTION:
242
 
243
@subheading NOTES:
244
 
245
@c
246
@c
247
@c
248
@page
249
@subsection pthread_cond_signal - Signal a Condition Variable
250
 
251
@findex pthread_cond_signal
252
@cindex  signal a condition variable
253
 
254
@subheading CALLING SEQUENCE:
255
 
256
@example
257
#include 
258
 
259
int pthread_cond_signal(
260
  pthread_cond_t *cond
261
);
262
@end example
263
 
264
@subheading STATUS CODES:
265
@table @b
266
@item EINVAL
267
The specified condition variable is not valid.
268
 
269
@end table
270
 
271
@subheading DESCRIPTION:
272
 
273
@subheading NOTES:
274
 
275
This routine should not be invoked from a handler from an asynchronous signal
276
handler or an interrupt service routine.
277
 
278
@c
279
@c
280
@c
281
@page
282
@subsection pthread_cond_broadcast - Broadcast a Condition Variable
283
 
284
@findex pthread_cond_broadcast
285
@cindex  broadcast a condition variable
286
 
287
@subheading CALLING SEQUENCE:
288
 
289
@example
290
#include 
291
 
292
int pthread_cond_broadcast(
293
  pthread_cond_t *cond
294
);
295
@end example
296
 
297
@subheading STATUS CODES:
298
@table @b
299
@item EINVAL
300
The specified condition variable is not valid.
301
 
302
@end table
303
 
304
@subheading DESCRIPTION:
305
 
306
@subheading NOTES:
307
 
308
This routine should not be invoked from a handler from an asynchronous signal
309
handler or an interrupt service routine.
310
 
311
@c
312
@c
313
@c
314
@page
315
@subsection pthread_cond_wait - Wait on a Condition Variable
316
 
317
@findex pthread_cond_wait
318
@cindex  wait on a condition variable
319
 
320
@subheading CALLING SEQUENCE:
321
 
322
@example
323
#include 
324
 
325
int pthread_cond_wait(
326
  pthread_cond_t *cond,
327
  pthread_mutex_t *mutex
328
);
329
@end example
330
 
331
@subheading STATUS CODES:
332
@table @b
333
@item EINVAL
334
The specified condition variable or mutex is not initialized OR different
335
mutexes were specified for concurrent pthread_cond_wait() and
336
pthread_cond_timedwait() operations on the same condition variable OR
337
the mutex was not owned by the current thread at the time of the call.
338
 
339
@end table
340
 
341
@subheading DESCRIPTION:
342
 
343
@subheading NOTES:
344
 
345
@c
346
@c
347
@c
348
@page
349
@subsection pthread_cond_timedwait - Wait with Timeout a Condition Variable
350
 
351
@findex pthread_cond_timedwait
352
@cindex  wait with timeout a condition variable
353
 
354
@subheading CALLING SEQUENCE:
355
 
356
@example
357
#include 
358
 
359
int pthread_cond_timedwait(
360
  pthread_cond_t        *cond,
361
  pthread_mutex_t       *mutex,
362
  const struct timespec *abstime
363
);
364
@end example
365
 
366
@subheading STATUS CODES:
367
@table @b
368
@item EINVAL
369
The specified condition variable or mutex is not initialized OR different
370
mutexes were specified for concurrent pthread_cond_wait() and
371
pthread_cond_timedwait() operations on the same condition variable OR
372
the mutex was not owned by the current thread at the time of the call.
373
 
374
@item ETIMEDOUT
375
The specified time has elapsed without the condition variable being
376
satisfied.
377
 
378
@end table
379
 
380
@subheading DESCRIPTION:
381
 
382
@subheading NOTES:
383
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.