ck_ring: Add wrapper functions for parameterized SPMC ring.

ck_pring
Samy Al Bahra 12 years ago
parent 68b33e56d8
commit 055a7fd5db

@ -156,6 +156,10 @@
ck_ring_enqueue_spsc_##name(object, value) ck_ring_enqueue_spsc_##name(object, value)
#define CK_RING_DEQUEUE_SPSC(name, object, value) \ #define CK_RING_DEQUEUE_SPSC(name, object, value) \
ck_ring_dequeue_spsc_##name(object, value) ck_ring_dequeue_spsc_##name(object, value)
#define CK_RING_DEQUEUE_SPMC(name, object, value) \
ck_ring_dequeue_spmc_##name(object, value)
#define CK_RING_ENQUEUE_SPMC(name, object, value) \
ck_ring_enqueue_spmc_##name(object, value)
struct ck_ring { struct ck_ring {
unsigned int c_head; unsigned int c_head;

Loading…
Cancel
Save