Lines Matching defs:mutex

181 	pthread_mutex_t mutex;
192 pthread_mutex_t mutex;
214 pthread_mutex_t mutex;
225 pthread_mutex_t mutex;
321 * It's not worth it to call cleanup_exit() from mutex functions because
347 pthread_mutex_t *restrict mutex)
349 errno = pthread_cond_wait(cond, mutex);
362 mutex_init(pthread_mutex_t *mutex,
365 errno = pthread_mutex_init(mutex, attr);
424 pthread_mutex_t *restrict mutex,
427 errno = pthread_cond_timedwait(cond, mutex, abstime);
441 mutex_init(&printstate.mutex, NULL);
539 static bool mutex_trylock_limit(pthread_mutex_t *mutex, int time_ms)
546 errno = pthread_mutex_trylock(mutex);
607 mutex_lock(&save_state.mutex);
613 mutex_unlock(&save_state.mutex);
639 * print thread happens to be waiting for the mutex because we have
652 mutex_init(&save_state.mutex, &mattr);
758 mutex_init(&sleeptable.mutex, NULL);
775 mutex_lock(&sleeptable.mutex);
783 mutex_unlock(&sleeptable.mutex);
791 mutex_init(&q->mutex, NULL);
845 cond_wait(&q->cond, &q->mutex);
853 mutex_lock(&q->mutex);
859 mutex_unlock(&q->mutex);
867 mutex_lock(&q->mutex);
875 mutex_unlock(&q->mutex);
1016 mutex_lock(&printstate.mutex);
1018 cond_timedwait(&printstate.cond, &printstate.mutex, &future);
1025 mutex_unlock(&printstate.mutex);
1377 mutex_lock(&save_state.mutex);
1406 mutex_unlock(&save_state.mutex);
1439 mutex_lock(&save_state.mutex);
1445 mutex_unlock(&save_state.mutex);
1519 mutex_lock(&printstate.mutex);
1524 mutex_unlock(&printstate.mutex);
1534 mutex_unlock(&printstate.mutex);
1573 mutex_lock(&printstate.mutex);
1576 mutex_unlock(&printstate.mutex);
1582 mutex_unlock(&printstate.mutex);
1605 * mutex.
1607 mutex_lock(&printstate.mutex);
1609 mutex_unlock(&printstate.mutex);