Searched refs:enqueue_sem (Results 1 – 1 of 1) sorted by relevance
32 semaphore_t *enqueue_sem; member54 ret->enqueue_sem = semaphore_new(capacity); in fixed_queue_new()55 if (!ret->enqueue_sem) in fixed_queue_new()80 semaphore_free(queue->enqueue_sem); in fixed_queue_free()118 semaphore_wait(queue->enqueue_sem); in fixed_queue_enqueue()137 semaphore_post(queue->enqueue_sem); in fixed_queue_dequeue()146 if (!semaphore_try_wait(queue->enqueue_sem)) in fixed_queue_try_enqueue()169 semaphore_post(queue->enqueue_sem); in fixed_queue_try_dequeue()210 semaphore_post(queue->enqueue_sem); in fixed_queue_try_remove_from_queue()232 return semaphore_get_fd(queue->enqueue_sem); in fixed_queue_get_enqueue_fd()