Lines Matching defs:lock
30 pthread_mutex_t lock;
54 if ((ret = pthread_mutex_init(&rmq->lock, NULL))) {
59 pthread_mutex_destroy(&rmq->lock);
65 pthread_mutex_destroy(&rmq->lock);
72 pthread_mutex_destroy(&rmq->lock);
101 pthread_mutex_destroy(&(*mq)->lock);
111 pthread_mutex_lock(&mq->lock);
113 pthread_mutex_unlock(&mq->lock);
129 pthread_cond_wait(&mq->cond_send, &mq->lock);
146 pthread_cond_wait(&mq->cond_recv, &mq->lock);
165 pthread_mutex_lock(&mq->lock);
167 pthread_mutex_unlock(&mq->lock);
181 pthread_mutex_lock(&mq->lock);
183 pthread_mutex_unlock(&mq->lock);
194 pthread_mutex_lock(&mq->lock);
197 pthread_mutex_unlock(&mq->lock);
205 pthread_mutex_lock(&mq->lock);
208 pthread_mutex_unlock(&mq->lock);
228 pthread_mutex_lock(&mq->lock);
235 pthread_mutex_unlock(&mq->lock);