Lines Matching defs:mutex
20 #include <isc/mutex.h>
43 static pthread_mutex_t mutex;
109 RUNTIME_CHECK(pthread_mutex_lock(&mutex) == ISC_R_SUCCESS);
123 pthread_cond_wait(&cond, &mutex);
125 RUNTIME_CHECK(pthread_mutex_unlock(&mutex) == ISC_R_SUCCESS);
226 RUNTIME_CHECK(pthread_mutex_lock(&mutex) == ISC_R_SUCCESS);
299 pthread_cond_wait(&cond, &mutex);
301 RUNTIME_CHECK(pthread_mutex_unlock(&mutex) == 0);
386 RUNTIME_CHECK(pthread_mutex_lock(&mutex) == ISC_R_SUCCESS);
412 pthread_cond_wait(&cond, &mutex);
414 RUNTIME_CHECK(pthread_mutex_unlock(&mutex) == ISC_R_SUCCESS);
438 RUNTIME_CHECK(pthread_mutex_lock(&mutex) == 0);
443 RUNTIME_CHECK(pthread_mutex_unlock(&mutex) == 0);
471 RUNTIME_CHECK(pthread_mutex_init(&mutex, NULL) == 0);