ck_ring: Expose *_size variants to type-specialized ck_ring.

Added:
 - CK_RING_ENQUEUE_SPSC_SIZE
 - CK_RING_ENQUEUE_SPMC_SIZE
ck_pring
Samy Al Bahra 12 years ago
parent 45f648bd33
commit 67381af3c5

@ -203,6 +203,8 @@
ck_ring_size_##name(object)
#define CK_RING_CAPACITY(name, object) \
ck_ring_capacity_##name(object)
#define CK_RING_ENQUEUE_SPSC_SIZE(name, object, value, s) \
ck_ring_enqueue_spsc_size_##name(object, value, s)
#define CK_RING_ENQUEUE_SPSC(name, object, value) \
ck_ring_enqueue_spsc_##name(object, value)
#define CK_RING_DEQUEUE_SPSC(name, object, value) \
@ -211,6 +213,8 @@
ck_ring_dequeue_spmc_##name(object, value)
#define CK_RING_TRYDEQUEUE_SPMC(name, object, value) \
ck_ring_trydequeue_spmc_##name(object, value)
#define CK_RING_ENQUEUE_SPMC_SIZE(name, object, value, s) \
ck_ring_enqueue_spmc_##name(object, value, s)
#define CK_RING_ENQUEUE_SPMC(name, object, value) \
ck_ring_enqueue_spmc_##name(object, value)

Loading…
Cancel
Save