Lines Matching refs:mutex_
24 pthread_mutex_t mutex_;
37 pthread_mutex_lock(&worker->impl_->mutex_);
39 pthread_cond_wait(&worker->impl_->condition_, &worker->impl_->mutex_);
49 pthread_mutex_unlock(&worker->impl_->mutex_);
62 pthread_mutex_lock(&worker->impl_->mutex_);
66 pthread_cond_wait(&worker->impl_->condition_, &worker->impl_->mutex_);
74 pthread_mutex_unlock(&worker->impl_->mutex_);
103 if (pthread_mutex_init(&worker->impl_->mutex_, NULL)) {
107 pthread_mutex_destroy(&worker->impl_->mutex_);
110 pthread_mutex_lock(&worker->impl_->mutex_);
113 pthread_mutex_unlock(&worker->impl_->mutex_);
115 pthread_mutex_destroy(&worker->impl_->mutex_);
151 pthread_mutex_destroy(&worker->impl_->mutex_);