Lines Matching refs:mutex

87 #define pipe_static_mutex(mutex) \  argument
88 static pipe_mutex mutex = PTHREAD_MUTEX_INITIALIZER
90 #define pipe_mutex_init(mutex) \ argument
91 (void) pthread_mutex_init(&(mutex), NULL)
93 #define pipe_mutex_destroy(mutex) \ argument
94 pthread_mutex_destroy(&(mutex))
96 #define pipe_mutex_lock(mutex) \ argument
97 (void) pthread_mutex_lock(&(mutex))
99 #define pipe_mutex_unlock(mutex) \ argument
100 (void) pthread_mutex_unlock(&(mutex))
107 #define pipe_static_condvar(mutex) \ argument
108 static pipe_condvar mutex = PTHREAD_COND_INITIALIZER
116 #define pipe_condvar_wait(cond, mutex) \ argument
117 pthread_cond_wait(&(cond), &(mutex))
164 #define pipe_static_mutex(mutex) \ argument
165 static pipe_mutex mutex = {(PCRITICAL_SECTION_DEBUG)-1, -1, 0, 0, 0, 0}
167 #define pipe_mutex_init(mutex) \ argument
168 InitializeCriticalSection(&mutex)
170 #define pipe_mutex_destroy(mutex) \ argument
171 DeleteCriticalSection(&mutex)
173 #define pipe_mutex_lock(mutex) \ argument
174 EnterCriticalSection(&mutex)
176 #define pipe_mutex_unlock(mutex) \ argument
177 LeaveCriticalSection(&mutex)
198 #define pipe_condvar_wait(cond, mutex) \
199 SleepConditionVariableCS(&(cond), &(mutex), INFINITE)
227 #define pipe_condvar_wait(cond, mutex) \ argument
228 do { pipe_mutex_unlock(mutex); \
230 pipe_mutex_lock(mutex); \
269 #define pipe_static_mutex(mutex) \ argument
270 static pipe_mutex mutex = 0
272 #define pipe_mutex_init(mutex) \ argument
273 (void) mutex
275 #define pipe_mutex_destroy(mutex) \ argument
276 (void) mutex
278 #define pipe_mutex_lock(mutex) \ argument
279 (void) mutex
281 #define pipe_mutex_unlock(mutex) \ argument
282 (void) mutex
298 #define pipe_condvar_wait(condvar, mutex) \ argument
299 do { pipe_mutex_unlock(mutex); \
301 pipe_mutex_lock(mutex); \
344 pipe_mutex mutex; member
353 pipe_mutex_init(barrier->mutex); in pipe_barrier_init()
360 pipe_mutex_destroy(barrier->mutex); in pipe_barrier_destroy()
366 pipe_mutex_lock(barrier->mutex); in pipe_barrier_wait()
375 pipe_condvar_wait(barrier->condvar, barrier->mutex); in pipe_barrier_wait()
383 pipe_mutex_unlock(barrier->mutex); in pipe_barrier_wait()
396 pipe_mutex mutex; member
405 pipe_mutex_init(sema->mutex); in pipe_semaphore_init()
413 pipe_mutex_destroy(sema->mutex); in pipe_semaphore_destroy()
421 pipe_mutex_lock(sema->mutex); in pipe_semaphore_signal()
424 pipe_mutex_unlock(sema->mutex); in pipe_semaphore_signal()
431 pipe_mutex_lock(sema->mutex); in pipe_semaphore_wait()
433 pipe_condvar_wait(sema->cond, sema->mutex); in pipe_semaphore_wait()
436 pipe_mutex_unlock(sema->mutex); in pipe_semaphore_wait()