[4/5] ring: use rte atomic thread fence
Checks
Commit Message
Use __rte_atomic_thread_fence instead of directly using
__atomic_thread_fence builtin gcc intrinsic
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
lib/ring/rte_ring_c11_pvt.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -68,7 +68,7 @@
n = max;
/* Ensure the head is read before tail */
- __atomic_thread_fence(rte_memory_order_acquire);
+ __rte_atomic_thread_fence(rte_memory_order_acquire);
/* load-acquire synchronize with store-release of ht->tail
* in update_tail.
@@ -145,7 +145,7 @@
n = max;
/* Ensure the head is read before tail */
- __atomic_thread_fence(rte_memory_order_acquire);
+ __rte_atomic_thread_fence(rte_memory_order_acquire);
/* this load-acquire synchronize with store-release of ht->tail
* in update_tail.