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 | @section Semaphore Functions |
---|
14 | |
---|
15 | @subsection Initialize an Unnamed Semaphore |
---|
16 | |
---|
17 | @example |
---|
18 | sem_init(), Function, Untested Implementation |
---|
19 | @end example |
---|
20 | |
---|
21 | @subsection Destroy an Unnamed Semaphore |
---|
22 | |
---|
23 | @example |
---|
24 | sem_destroy(), Function, Untested Implementation |
---|
25 | @end example |
---|
26 | |
---|
27 | @subsection Initialize/Open a Named Semaphore |
---|
28 | |
---|
29 | @example |
---|
30 | sem_open(), Function, Untested Implementation |
---|
31 | @end example |
---|
32 | |
---|
33 | @subsection Close a Named Semaphore |
---|
34 | |
---|
35 | @example |
---|
36 | sem_close(), Function, Untested Implementation |
---|
37 | @end example |
---|
38 | |
---|
39 | @subsection Remove a Named Semaphore |
---|
40 | |
---|
41 | @example |
---|
42 | sem_unlink(), Function, Untested Implementation |
---|
43 | @end example |
---|
44 | |
---|
45 | @subsection Lock a Semaphore |
---|
46 | |
---|
47 | @example |
---|
48 | sem_wait(), Function, Untested Implementation |
---|
49 | sem_trywait(), Function, Untested Implementation |
---|
50 | @end example |
---|
51 | |
---|
52 | @subsection Unlock a Semaphore |
---|
53 | |
---|
54 | @example |
---|
55 | sem_post(), Function, Untested Implementation |
---|
56 | @end example |
---|
57 | |
---|
58 | @subsection Get the Value of a Semaphore |
---|
59 | |
---|
60 | @example |
---|
61 | sem_getvalue(), Function, Untested Implementation |
---|
62 | @end example |
---|
63 | |
---|
64 | @section Mutexes |
---|
65 | |
---|
66 | @subsection Mutex Initialization Attributes |
---|
67 | |
---|
68 | @example |
---|
69 | pthread_mutexattr_init(), Function |
---|
70 | pthread_mutexattr_destroy(), Function |
---|
71 | pthread_mutexattr_getpshared(), Function |
---|
72 | pthread_mutexattr_setpshared(), Function |
---|
73 | @end example |
---|
74 | |
---|
75 | @subsection Initializing and Destroying a Mutex |
---|
76 | |
---|
77 | @example |
---|
78 | pthread_mutex_init(), Function |
---|
79 | pthread_mutex_destroy(), Function |
---|
80 | @end example |
---|
81 | |
---|
82 | @subsection Locking and Unlocking a Mutex |
---|
83 | |
---|
84 | @example |
---|
85 | pthread_mutex_lock(), Function |
---|
86 | pthread_mutex_trylock(), Function |
---|
87 | pthread_mutex_unlock(), Function |
---|
88 | @end example |
---|
89 | |
---|
90 | @section Condition Variables |
---|
91 | |
---|
92 | @subsection Condition Variable Initialization Attributes |
---|
93 | |
---|
94 | @example |
---|
95 | pthread_condattr_init(), Function |
---|
96 | pthread_condattr_destroy(), Function |
---|
97 | pthread_condattr_getpshared(), Function |
---|
98 | pthread_condattr_setpshared(), Function |
---|
99 | @end example |
---|
100 | |
---|
101 | @subsection Initialization and Destroying Condition Variables |
---|
102 | |
---|
103 | @example |
---|
104 | pthread_cond_init(), Function |
---|
105 | pthread_cond_destroy(), Function |
---|
106 | @end example |
---|
107 | |
---|
108 | @subsection Broadcasting and Signaling a Condition |
---|
109 | |
---|
110 | @example |
---|
111 | pthread_cond_signal(), Function |
---|
112 | pthread_cond_broadcast(), Function |
---|
113 | @end example |
---|
114 | |
---|
115 | @subsection Waiting on a Condition |
---|
116 | |
---|
117 | @example |
---|
118 | pthread_cond_wait(), Function |
---|
119 | pthread_cond_timedwait(), Function |
---|
120 | @end example |
---|
121 | |
---|