Home
last modified time | relevance | path

Searched refs:enqueue_sem (Results 1 – 1 of 1) sorted by relevance

/system/bt/osi/src/
Dfixed_queue.c32 semaphore_t *enqueue_sem; member
56 ret->enqueue_sem = semaphore_new(capacity); in fixed_queue_new()
57 if (!ret->enqueue_sem) in fixed_queue_new()
82 semaphore_free(queue->enqueue_sem); in fixed_queue_free()
108 semaphore_wait(queue->enqueue_sem); in fixed_queue_enqueue()
127 semaphore_post(queue->enqueue_sem); in fixed_queue_dequeue()
136 if (!semaphore_try_wait(queue->enqueue_sem)) in fixed_queue_try_enqueue()
158 semaphore_post(queue->enqueue_sem); in fixed_queue_try_dequeue()
181 return semaphore_get_fd(queue->enqueue_sem); in fixed_queue_get_enqueue_fd()