ck_hp_fifo: Add deinit routine to allow reclaiming stub node.

ck_pring
Samy Al Bahra 11 years ago
parent c75e470ed4
commit cb8f5f9ebb

@ -65,6 +65,15 @@ ck_hp_fifo_init(struct ck_hp_fifo *fifo, struct ck_hp_fifo_entry *stub)
return;
}
CK_CC_INLINE static void
ck_hp_fifo_deinit(struct ck_hp_fifo *fifo, struct ck_hp_fifo_entry **stub)
{
*stub = fifo->head;
fifo->head = fifo->tail = NULL;
return;
}
CK_CC_INLINE static void
ck_hp_fifo_enqueue_mpmc(ck_hp_record_t *record,
struct ck_hp_fifo *fifo,

Loading…
Cancel
Save