Lines Matching refs:mutex
36 uv_mutex_t mutex; member
61 ASSERT_OK(uv_mutex_init(&wc->mutex)); in worker_config_init()
65 uv_mutex_destroy(&wc->mutex); in worker_config_destroy()
87 uv_mutex_lock(&c->mutex); in condvar_signal()
98 uv_mutex_unlock(&c->mutex); in condvar_signal()
107 uv_mutex_lock(&c->mutex); in condvar_wait()
114 uv_cond_wait(&c->cond, &c->mutex); in condvar_wait()
118 uv_mutex_unlock(&c->mutex); in condvar_wait()
171 uv_mutex_lock(&c->mutex); in condvar_timedwait()
178 r = uv_cond_timedwait(&c->cond, &c->mutex, (uint64_t)(1 * 1e9)); /* 1 s */ in condvar_timedwait()
183 uv_mutex_unlock(&c->mutex); in condvar_timedwait()
238 uv_mutex_lock(&wc.mutex); in TEST_IMPL()
241 ASSERT_EQ(UV_ETIMEDOUT, uv_cond_timedwait(&wc.cond, &wc.mutex, timeout)); in TEST_IMPL()
243 uv_mutex_unlock(&wc.mutex); in TEST_IMPL()