1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-1998. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | @c |
---|
6 | @c $Id$ |
---|
7 | @c |
---|
8 | |
---|
9 | @chapter Synchronization |
---|
10 | |
---|
11 | @section Semaphore Characteristics |
---|
12 | |
---|
13 | @example |
---|
14 | sem_t, Type, Untested Implementation |
---|
15 | @end example |
---|
16 | |
---|
17 | @section Semaphore Functions |
---|
18 | |
---|
19 | @subsection Initialize an Unnamed Semaphore |
---|
20 | |
---|
21 | @example |
---|
22 | sem_init(), Function, Untested Implementation |
---|
23 | SEM_FAILED, Constant, |
---|
24 | @end example |
---|
25 | |
---|
26 | @subsection Destroy an Unnamed Semaphore |
---|
27 | |
---|
28 | @example |
---|
29 | sem_destroy(), Function, Untested Implementation |
---|
30 | @end example |
---|
31 | |
---|
32 | @subsection Initialize/Open a Named Semaphore |
---|
33 | |
---|
34 | @example |
---|
35 | sem_open(), Function, Untested Implementation |
---|
36 | @end example |
---|
37 | |
---|
38 | @subsection Close a Named Semaphore |
---|
39 | |
---|
40 | @example |
---|
41 | sem_close(), Function, Untested Implementation |
---|
42 | @end example |
---|
43 | |
---|
44 | @subsection Remove a Named Semaphore |
---|
45 | |
---|
46 | @example |
---|
47 | sem_unlink(), Function, Untested Implementation |
---|
48 | @end example |
---|
49 | |
---|
50 | @subsection Lock a Semaphore |
---|
51 | |
---|
52 | @example |
---|
53 | sem_wait(), Function, Untested Implementation |
---|
54 | sem_trywait(), Function, Untested Implementation |
---|
55 | @end example |
---|
56 | |
---|
57 | @subsection Unlock a Semaphore |
---|
58 | |
---|
59 | @example |
---|
60 | sem_post(), Function, Untested Implementation |
---|
61 | @end example |
---|
62 | |
---|
63 | @subsection Get the Value of a Semaphore |
---|
64 | |
---|
65 | @example |
---|
66 | sem_getvalue(), Function, Untested Implementation |
---|
67 | @end example |
---|
68 | |
---|
69 | @section Mutexes |
---|
70 | |
---|
71 | @subsection Mutex Initialization Attributes |
---|
72 | |
---|
73 | @example |
---|
74 | pthread_mutexattr_init(), Function, Implemented |
---|
75 | pthread_mutexattr_destroy(), Function, Implemented |
---|
76 | pthread_mutexattr_getpshared(), Function, Implemented |
---|
77 | pthread_mutexattr_setpshared(), Function, Implemented |
---|
78 | PTHREAD_PROCESS_SHARED, Constant, |
---|
79 | PTHREAD_PROCESS_PRIVATE, Constant, |
---|
80 | @end example |
---|
81 | |
---|
82 | @subsection Initializing and Destroying a Mutex |
---|
83 | |
---|
84 | @example |
---|
85 | pthread_mutex_init(), Function, Implemented |
---|
86 | pthread_mutex_destroy(), Function, Implemented |
---|
87 | PTHREAD_MUTEX_INITIALIZER, Constant, |
---|
88 | @end example |
---|
89 | |
---|
90 | @subsection Locking and Unlocking a Mutex |
---|
91 | |
---|
92 | @example |
---|
93 | pthread_mutex_lock(), Function, Implemented |
---|
94 | pthread_mutex_trylock(), Function, Implemented |
---|
95 | pthread_mutex_unlock(), Function, Implemented |
---|
96 | @end example |
---|
97 | |
---|
98 | @section Condition Variables |
---|
99 | |
---|
100 | @subsection Condition Variable Initialization Attributes |
---|
101 | |
---|
102 | @example |
---|
103 | pthread_condattr_init(), Function, Implemented |
---|
104 | pthread_condattr_destroy(), Function, Implemented |
---|
105 | pthread_condattr_getpshared(), Function, Implemented |
---|
106 | pthread_condattr_setpshared(), Function, Implemented |
---|
107 | @end example |
---|
108 | |
---|
109 | @subsection Initialization and Destroying Condition Variables |
---|
110 | |
---|
111 | @example |
---|
112 | pthread_cond_init(), Function, Implemented |
---|
113 | pthread_cond_destroy(), Function, Implemented |
---|
114 | PTHREAD_COND_INITIALIZER, Constant, |
---|
115 | @end example |
---|
116 | |
---|
117 | @subsection Broadcasting and Signaling a Condition |
---|
118 | |
---|
119 | @example |
---|
120 | pthread_cond_signal(), Function, Implemented |
---|
121 | pthread_cond_broadcast(), Function, Implemented |
---|
122 | @end example |
---|
123 | |
---|
124 | @subsection Waiting on a Condition |
---|
125 | |
---|
126 | @example |
---|
127 | pthread_cond_wait(), Function, Implemented |
---|
128 | pthread_cond_timedwait(), Function, Implemented |
---|
129 | @end example |
---|
130 | |
---|