Compare commits
2 Commits
ca8e7b40bc
...
c2053ed3dd
Author | SHA1 | Date |
---|---|---|
|
c2053ed3dd | |
|
f3408bb0df |
|
@ -35,7 +35,7 @@ namespace BAN
|
|||
inline T operator--(int) volatile { return __atomic_fetch_sub(&m_value, 1, MEM_ORDER); }
|
||||
inline T operator++(int) volatile { return __atomic_fetch_add(&m_value, 1, MEM_ORDER); }
|
||||
|
||||
inline bool compare_exchange(T expected, T desired) volatile { return __atomic_compare_exchange_n(&m_value, &expected, desired, false, MEM_ORDER, MEM_ORDER); }
|
||||
bool compare_exchange(T expected, T desired) volatile { return __atomic_compare_exchange_n(&m_value, &expected, desired, false, MEM_ORDER, MEM_ORDER); }
|
||||
|
||||
private:
|
||||
T m_value;
|
||||
|
|
Loading…
Reference in New Issue