Lines Matching refs:mutex
79 pthread_mutex_t mutex;
455 pthread_mutex_lock(&s->mutex);
464 pthread_mutex_unlock(&s->mutex);
471 pthread_mutex_lock(&s->mutex);
501 pthread_mutex_unlock(&s->mutex);
746 ret = pthread_mutex_init(&s->mutex, NULL);
770 pthread_mutex_destroy(&s->mutex);
791 pthread_mutex_lock(&s->mutex);
806 pthread_mutex_unlock(&s->mutex);
810 pthread_mutex_unlock(&s->mutex);
813 pthread_mutex_unlock(&s->mutex);
822 if (pthread_cond_timedwait(&s->cond, &s->mutex, &tv) < 0) {
823 pthread_mutex_unlock(&s->mutex);
877 pthread_mutex_destroy(&s->mutex);