std::atomic_fetch_add,std::atomic_fetch_add_explicit C++ Concurrency support library Defined in header<atomic> template<classT> T atomic_fetch_add(std::atomic<T>*obj, typenamestd::atomic<T>::difference_typearg)noexcept; (1)(since C++11) ...
std::atomic_fetch_add,std::atomic_fetch_add_explicit 定义于头文件<atomic> (1) template<classT> T atomic_fetch_add(std::atomic<T>*obj, typenamestd::atomic<T>::difference_typearg)noexcept; template<classT> T atomic_fetch_add(volatilestd::atomic<T>*obj, ...
T atomic_fetch_add_explicit( std::atomic<T>* obj, typename std::atomic<T>::difference_type arg, std::memory_order order ) noexcept; template< class T > T atomic_fetch_add_explicit( volatile std::atomic<T>* obj, typename std::atomic<T>::difference_type arg, std::memory_order ...
T atomic_fetch_add_explicit( volatile std::atomic<T>* obj, typename std::atomic<T>::difference_type arg, std::memory_order order ) noexcept;进行原子加法。 原子地加 arg 到obj 所指向的值,并返回 obj 先前保有的值。如同执行下列内容一般进行运算: 1...