ck_ring: Do not use volatile load for parametric ck_ring_size.

ck_pring 0.2.7
Samy Al Bahra 12 years ago
parent 6159940337
commit 80c56d115b

@ -74,7 +74,7 @@
ck_ring_capacity_##name(struct ck_ring_##name *ring) \
{ \
\
return ck_pr_load_uint(&ring->size); \
return ring->size; \
} \
CK_CC_INLINE static bool \
ck_ring_enqueue_spsc_##name(struct ck_ring_##name *ring, \

Loading…
Cancel
Save