Lines Matching defs:mutex
34 static uv_mutex_t mutex;
55 * never holds the global mutex and the loop-local mutex at the same time.
65 uv_mutex_lock(&mutex);
67 /* `mutex` should always be locked at this point. */
76 uv_cond_wait(&cond, &mutex);
83 uv_mutex_unlock(&mutex);
119 uv_mutex_unlock(&mutex);
131 /* Lock `mutex` since that is expected at the start of the next
133 uv_mutex_lock(&mutex);
135 /* `slow_io_work_running` is protected by `mutex`. */
143 uv_mutex_lock(&mutex);
150 uv_mutex_unlock(&mutex);
159 uv_mutex_unlock(&mutex);
185 uv_mutex_destroy(&mutex);
219 if (uv_mutex_init(&mutex))
251 * Note that this discards the global mutex and condition as well
277 uv_mutex_lock(&mutex);
285 uv_mutex_unlock(&mutex);