From e24435ef58b2f28555e6397f502f41f36524dac9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 19 Nov 2018 03:21:58 -0800 Subject: Remove the atomic exchange macros --- common/atomic.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'common/atomic.h') diff --git a/common/atomic.h b/common/atomic.h index d1557ffb..e58a363c 100644 --- a/common/atomic.h +++ b/common/atomic.h @@ -54,10 +54,6 @@ using std::atomic_thread_fence; #define ATOMIC_ADD atomic_fetch_add_explicit #define ATOMIC_SUB atomic_fetch_sub_explicit -#define ATOMIC_EXCHANGE atomic_exchange_explicit -#define ATOMIC_COMPARE_EXCHANGE_STRONG atomic_compare_exchange_strong_explicit -#define ATOMIC_COMPARE_EXCHANGE_WEAK atomic_compare_exchange_weak_explicit - #define ATOMIC_THREAD_FENCE atomic_thread_fence @@ -67,12 +63,6 @@ using std::atomic_thread_fence; #define ATOMIC_ADD_SEQ(_val, _incr) ATOMIC_ADD(_val, _incr, almemory_order_seq_cst) #define ATOMIC_SUB_SEQ(_val, _decr) ATOMIC_SUB(_val, _decr, almemory_order_seq_cst) -#define ATOMIC_EXCHANGE_SEQ(_val, _newval) ATOMIC_EXCHANGE(_val, _newval, almemory_order_seq_cst) -#define ATOMIC_COMPARE_EXCHANGE_STRONG_SEQ(_val, _oldval, _newval) \ - ATOMIC_COMPARE_EXCHANGE_STRONG(_val, _oldval, _newval, almemory_order_seq_cst, almemory_order_seq_cst) -#define ATOMIC_COMPARE_EXCHANGE_WEAK_SEQ(_val, _oldval, _newval) \ - ATOMIC_COMPARE_EXCHANGE_WEAK(_val, _oldval, _newval, almemory_order_seq_cst, almemory_order_seq_cst) - using RefCount = std::atomic; -- cgit v1.2.3