2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

Added atomic_compare_exchange_strong_acq_rel macro

It is much better to read than:
atomic_compare_exchange_strong_explicit() with 5 arguments.
This commit is contained in:
Diego Fronza 2020-02-11 17:21:13 -03:00 committed by Ondřej Surý
parent 5e1202d1c9
commit fa68a0d869

View File

@ -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)