Lines Matching refs:lock
34 pthread_mutex_t lock; member
47 pthread_mutex_init(&ret->lock, NULL); in fixed_queue_new()
82 pthread_mutex_destroy(&queue->lock); in fixed_queue_free()
90 pthread_mutex_lock(&queue->lock); in fixed_queue_is_empty()
92 pthread_mutex_unlock(&queue->lock); in fixed_queue_is_empty()
101 pthread_mutex_lock(&queue->lock); in fixed_queue_length()
103 pthread_mutex_unlock(&queue->lock); in fixed_queue_length()
120 pthread_mutex_lock(&queue->lock); in fixed_queue_enqueue()
122 pthread_mutex_unlock(&queue->lock); in fixed_queue_enqueue()
132 pthread_mutex_lock(&queue->lock); in fixed_queue_dequeue()
135 pthread_mutex_unlock(&queue->lock); in fixed_queue_dequeue()
149 pthread_mutex_lock(&queue->lock); in fixed_queue_try_enqueue()
151 pthread_mutex_unlock(&queue->lock); in fixed_queue_try_enqueue()
164 pthread_mutex_lock(&queue->lock); in fixed_queue_try_dequeue()
167 pthread_mutex_unlock(&queue->lock); in fixed_queue_try_dequeue()
178 pthread_mutex_lock(&queue->lock); in fixed_queue_try_peek_first()
180 pthread_mutex_unlock(&queue->lock); in fixed_queue_try_peek_first()
189 pthread_mutex_lock(&queue->lock); in fixed_queue_try_peek_last()
191 pthread_mutex_unlock(&queue->lock); in fixed_queue_try_peek_last()
201 pthread_mutex_lock(&queue->lock); in fixed_queue_try_remove_from_queue()
207 pthread_mutex_unlock(&queue->lock); in fixed_queue_try_remove_from_queue()