Lines Matching refs:mutex
46 #define MUTEX_INIT(mutex) do { \
47 int __n = pthread_mutex_init((mutex), NULL); \
53 #define MUTEX_DESTROY(mutex) do { \
54 int __n = pthread_mutex_destroy((mutex)); \
60 #define LOCK(mutex) do { \
61 int __n = pthread_mutex_lock((mutex)); \
67 #define UNLOCK(mutex) do { \
68 int __n = pthread_mutex_unlock((mutex)); \
95 #define WAIT(cond, mutex) do { \
96 int __n = pthread_cond_wait((cond), (mutex)); \
102 #define TIMEDWAIT(cond, mutex, when, timedout) do { \
103 int __n = pthread_cond_timedwait((cond), (mutex), (when)); \