Lines Matching defs:mutex
48 static uv_mutex_t mutex;
340 * never holds the global mutex and the loop-local mutex at the same time.
350 uv_mutex_lock(&mutex);
352 /* `mutex` should always be locked at this point. */
361 uv_cond_wait(&cond, &mutex);
368 uv_mutex_unlock(&mutex);
404 uv_mutex_unlock(&mutex);
425 /* Lock `mutex` since that is expected at the start of the next
427 uv_mutex_lock(&mutex);
429 /* `slow_io_work_running` is protected by `mutex`. */
438 uv_mutex_lock(&mutex);
445 uv_mutex_unlock(&mutex);
454 uv_mutex_unlock(&mutex);
480 uv_mutex_destroy(&mutex);
522 if (uv_mutex_init(&mutex))
557 * Note that this discards the global mutex and condition as well
606 uv_mutex_lock(&mutex);
614 uv_mutex_unlock(&mutex);