Lines Matching refs:mutex
38 pthread_mutex_t mutex; variable
46 int ret = pthread_mutex_trylock (&mutex); in cleanup()
52 if (pthread_mutex_unlock (&mutex)) in cleanup()
64 if ((ret = pthread_mutex_lock (&mutex)) != 0) in signaller()
76 if ((ret = pthread_mutex_unlock (&mutex)) != 0) in signaller()
89 if ((ret = pthread_mutex_unlock (&mutex)) != 0) in signaller()
103 if ((ret = pthread_mutex_lock (&mutex)) != 0) in waiter()
111 if ((ret = pthread_cond_wait (&cond, &mutex)) != 0) in waiter()
118 if ((ret = pthread_mutex_unlock (&mutex)) != 0) in waiter()
132 if ((ret = pthread_mutex_unlock (&mutex)) != 0) in waiter()
156 if ((ret = pthread_mutex_lock (&mutex)) != 0) in timed_waiter()
165 if ((ret = pthread_cond_timedwait (&cond, &mutex, &ts)) != 0) in timed_waiter()
171 if ((ret = pthread_mutex_unlock (&mutex)) != 0) in timed_waiter()
185 if ((ret = pthread_mutex_unlock (&mutex)) != 0) in timed_waiter()
220 if ((ret = pthread_mutex_init (&mutex, &attr)) != 0) in do_test_wait()