template <class _Ty> inline bool atomic_compare_exchange_strong_explicit( volatile atomic<Ty> *Atom, Ty *Exp, Ty Value, memory_order Order1, memory_order Order2 ) _NOEXCEPT; template <class Ty> inline bool atomic_compare_exchange_strong_explicit( atomic<Ty> *Atom, Ty *Exp, Ty Value, ...
bool atomic_compare_exchange_strong_explicit(A*object,C*expected,Cdesired, memory_ordersuccess, memory_orderfailure) noexcept; Parameters A One of the atomic types. C The corresponding non-atomic type ofA. object The pointer that points to the atomic object to test and modify. ...
template< class T > bool atomic_compare_exchange_strong_explicit( volatile std::atomic<T>* obj, T* expected, T desired, std::memory_order succ, std::memory_order fail ); 原子比较对象表示所指向的对象的obj所指向的对象的对象表示形式。expected,好像std::memcmp,如果这些是按位相等的,则将...
Atomic operations library ATOMIC_*_LOCK_FREE atomic_compare_exchange_strong atomic_compare_exchange_strong_explicit atomic_compare_exchange_weak atomic_compare_exchange_weak_explicit atomic_exchange atomic_exchange_explicit atomic_fetch_add atomic_fetch_add_explicit ...
_Bool atomic_compare_exchange_strong_explicit(volatileA*obj, C*expected, C desired, memory_ordersucc, memory_orderfail); (3)(C11 起) _Bool atomic_compare_exchange_weak_explicit(volatileA*obj, C*expected, C desired, memory_ordersucc,
The atomic_compare_exchange_strong_explicit() function takes two memory_order parameters, success and failure (as does atomic_compare_exchange_weak_explicit()). Unpicking the C11/C18 Standards, I find that the allowed values for success and failure are: success = memory_order_re...
_Bool atomic_compare_exchange_strong_explicit( volatile A* obj, C* expected, C desired, memory_order succ, memory_order fail ); (3) (C11 起) _Bool atomic_compare_exchange_weak_explicit( volatile A *obj, C* expected, C desired, memory_order succ, memory_order fail ); (4) (...
_Bool atomic_compare_exchange_strong_explicit(volatileA*obj, C*expected, C desired, memory_ordersucc, memory_orderfail); (3)(C11 起) _Bool atomic_compare_exchange_weak_explicit(volatileA*obj, C*expected, C desired, memory_ordersucc,
bool atomic_compare_exchange_strong_explicit(std::atomic<T>* obj, typenamestd::atomic<T>::value_type* expected, typenamestd::atomic<T>::value_type desired, std::memory_ordersucc, std::memory_orderfail ) noexcept; template< class T > ...
atomic_load C++11 atomic_load_explicit C++11 atomic_store C++11 atomic_store_explicit function <atomic> template (1) template <class T>bool atomic_compare_exchange_strong_explicit (volatile atomic<T>* obj, T* expected, T val, memory_order success, memory_order failure) noexcept;template <clas...