Lines Matching defs:mutex
72 void call_mutex_init(pthread_mutex_t * mutex, char *buf, size_t buf_len)
76 if ((ret = pthread_mutex_init(mutex, NULL)) != 0) {
82 void call_mutex_lock(pthread_mutex_t * mutex, char *buf, size_t buf_len)
86 if ((ret = pthread_mutex_lock(mutex)) != 0) {
92 void call_mutex_unlock(pthread_mutex_t * mutex, char *buf, size_t buf_len)
96 if ((ret = pthread_mutex_unlock(mutex)) != 0) {
112 void call_cond_wait(pthread_cond_t * cond, pthread_mutex_t * mutex,
117 if ((ret = pthread_cond_wait(cond, mutex)) != 0) {
133 void do_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex,
150 call_mutex_lock(mutex, buf, buf_len);
151 if ((ret = pthread_cond_timedwait(cond, mutex, &ts)) != ETIMEDOUT) {
161 call_mutex_unlock(mutex, buf, buf_len);