summaryrefslogtreecommitdiffstats
path: root/doc/posix1003.1/ch11.t
blob: a54a914c7e4a1c09509e033b9e69279302bb3815 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
@c
@c  COPYRIGHT (c) 1988-2002.
@c  On-Line Applications Research Corporation (OAR).
@c  All rights reserved.
@c
@c  $Id$
@c

@chapter Synchronization

@section Semaphore Characteristics

NOTE: Semaphores are implemented but only unnamed semaphores
are currently tested.

@example
sem_t, Type, Implemented
@end example

@section Semaphore Functions

@subsection Initialize an Unnamed Semaphore

@example
sem_init(), Function, Implemented
SEM_FAILED, Constant, Implemented
@end example

@subsection Destroy an Unnamed Semaphore

@example
sem_destroy(), Function, Implemented
@end example

@subsection Initialize/Open a Named Semaphore

@example
sem_open(), Function, Implemented
@end example

@subsection Close a Named Semaphore

@example
sem_close(), Function, Implemented
@end example

@subsection Remove a Named Semaphore

@example
sem_unlink(), Function, Implemented
@end example

@subsection Lock a Semaphore

@example
sem_wait(), Function, Implemented
sem_trywait(), Function, Implemented
@end example

@subsection Unlock a Semaphore

@example
sem_post(), Function, Implemented
@end example

@subsection Get the Value of a Semaphore

@example
sem_getvalue(), Function, Implemented
@end example

@section Mutexes

@subsection Mutex Initialization Attributes

@example
pthread_mutexattr_init(), Function, Implemented
pthread_mutexattr_destroy(), Function, Implemented
pthread_mutexattr_getpshared(), Function, Implemented
pthread_mutexattr_setpshared(), Function, Implemented
PTHREAD_PROCESS_SHARED, Constant, Implemented
PTHREAD_PROCESS_PRIVATE, Constant, Implemented
@end example

@subsection Initializing and Destroying a Mutex

@example
pthread_mutex_init(), Function, Implemented
pthread_mutex_destroy(), Function, Implemented
PTHREAD_MUTEX_INITIALIZER, Constant, Implemented
@end example

@subsection Locking and Unlocking a Mutex

@example
pthread_mutex_lock(), Function, Implemented
pthread_mutex_trylock(), Function, Implemented
pthread_mutex_unlock(), Function, Implemented
@end example

@section Condition Variables

@subsection Condition Variable Initialization Attributes

@example
pthread_condattr_init(), Function, Implemented
pthread_condattr_destroy(), Function, Implemented
pthread_condattr_getpshared(), Function, Implemented
pthread_condattr_setpshared(), Function, Implemented
@end example

@subsection Initialization and Destroying Condition Variables

@example
pthread_cond_init(), Function, Implemented
pthread_cond_destroy(), Function, Implemented
PTHREAD_COND_INITIALIZER, Constant, Implemented
@end example

@subsection Broadcasting and Signaling a Condition

@example
pthread_cond_signal(), Function, Implemented
pthread_cond_broadcast(), Function, Implemented
@end example

@subsection Waiting on a Condition

@example
pthread_cond_wait(), Function, Implemented
pthread_cond_timedwait(), Function, Implemented
@end example