From fa68a0d869aa480c0e48369a9d79ef320ba72fcc Mon Sep 17 00:00:00 2001 From: Diego Fronza Date: Tue, 11 Feb 2020 17:21:13 -0300 Subject: [PATCH] Added atomic_compare_exchange_strong_acq_rel macro It is much better to read than: atomic_compare_exchange_strong_explicit() with 5 arguments. --- lib/isc/include/isc/atomic.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/isc/include/isc/atomic.h b/lib/isc/include/isc/atomic.h index 39a78e2b76..34344e244b 100644 --- a/lib/isc/include/isc/atomic.h +++ b/lib/isc/include/isc/atomic.h @@ -68,3 +68,6 @@ #define atomic_compare_exchange_weak_acq_rel(o, e, d) \ atomic_compare_exchange_weak_explicit( \ (o), (e), (d), memory_order_acq_rel, memory_order_acquire) +#define atomic_compare_exchange_strong_acq_rel(o, e, d) \ + atomic_compare_exchange_strong_explicit( \ + (o), (e), (d), memory_order_acq_rel, memory_order_acquire)