diff --git a/include/ck_fifo.h b/include/ck_fifo.h index 22744e9..1e0e2df 100644 --- a/include/ck_fifo.h +++ b/include/ck_fifo.h @@ -77,6 +77,13 @@ ck_fifo_spsc_enqueue_unlock(struct ck_fifo_spsc *fifo) return; } +CK_CC_INLINE static bool +ck_fifo_spsc_dequeue_trylock(struct ck_fifo_spsc *fifo) +{ + + return ck_spinlock_fas_trylock(&fifo->m_head); +} + CK_CC_INLINE static void ck_fifo_spsc_dequeue_lock(struct ck_fifo_spsc *fifo) {