Searched refs:enqueue_sem (Results 1 – 1 of 1) sorted by relevance
34 semaphore_t* enqueue_sem; member56 ret->enqueue_sem = semaphore_new(capacity); in fixed_queue_new()57 if (!ret->enqueue_sem) goto error; in fixed_queue_new()80 semaphore_free(queue->enqueue_sem); in fixed_queue_free()121 semaphore_wait(queue->enqueue_sem); in fixed_queue_enqueue()143 semaphore_post(queue->enqueue_sem); in fixed_queue_dequeue()152 if (!semaphore_try_wait(queue->enqueue_sem)) return false; in fixed_queue_try_enqueue()175 semaphore_post(queue->enqueue_sem); in fixed_queue_try_dequeue()208 semaphore_post(queue->enqueue_sem); in fixed_queue_try_remove_from_queue()230 return semaphore_get_fd(queue->enqueue_sem); in fixed_queue_get_enqueue_fd()