Lines Matching refs:lock
34 pthread_mutex_t lock; member
49 pthread_mutex_init(&ret->lock, NULL); in fixed_queue_new()
84 pthread_mutex_destroy(&queue->lock); in fixed_queue_free()
91 pthread_mutex_lock(&queue->lock); in fixed_queue_is_empty()
93 pthread_mutex_unlock(&queue->lock); in fixed_queue_is_empty()
110 pthread_mutex_lock(&queue->lock); in fixed_queue_enqueue()
112 pthread_mutex_unlock(&queue->lock); in fixed_queue_enqueue()
122 pthread_mutex_lock(&queue->lock); in fixed_queue_dequeue()
125 pthread_mutex_unlock(&queue->lock); in fixed_queue_dequeue()
139 pthread_mutex_lock(&queue->lock); in fixed_queue_try_enqueue()
141 pthread_mutex_unlock(&queue->lock); in fixed_queue_try_enqueue()
153 pthread_mutex_lock(&queue->lock); in fixed_queue_try_dequeue()
156 pthread_mutex_unlock(&queue->lock); in fixed_queue_try_dequeue()
166 pthread_mutex_lock(&queue->lock); in fixed_queue_try_peek()
169 pthread_mutex_unlock(&queue->lock); in fixed_queue_try_peek()