Lines Matching refs:mutex
29 static uv_mutex_t mutex; variable
39 uv_mutex_t mutex; in TEST_IMPL() local
42 r = uv_mutex_init(&mutex); in TEST_IMPL()
45 uv_mutex_lock(&mutex); in TEST_IMPL()
46 uv_mutex_unlock(&mutex); in TEST_IMPL()
47 uv_mutex_destroy(&mutex); in TEST_IMPL()
54 uv_mutex_t mutex; in TEST_IMPL() local
57 r = uv_mutex_init_recursive(&mutex); in TEST_IMPL()
60 uv_mutex_lock(&mutex); in TEST_IMPL()
61 uv_mutex_lock(&mutex); in TEST_IMPL()
62 ASSERT_OK(uv_mutex_trylock(&mutex)); in TEST_IMPL()
64 uv_mutex_unlock(&mutex); in TEST_IMPL()
65 uv_mutex_unlock(&mutex); in TEST_IMPL()
66 uv_mutex_unlock(&mutex); in TEST_IMPL()
67 uv_mutex_destroy(&mutex); in TEST_IMPL()
103 for (current = step; current == step; uv_cond_wait(&condvar, &mutex)); in synchronize()
111 uv_mutex_lock(&mutex); in thread_rwlock_trylock_peer()
135 uv_mutex_unlock(&mutex); in thread_rwlock_trylock_peer()
143 ASSERT_OK(uv_mutex_init(&mutex)); in TEST_IMPL()
146 uv_mutex_lock(&mutex); in TEST_IMPL()
177 uv_mutex_unlock(&mutex); in TEST_IMPL()
178 uv_mutex_destroy(&mutex); in TEST_IMPL()