將bool中加上旗標 atomic_flag 物件到true,藉由套用指定 memory_order 條件約束。複製 inline bool atomic_flag_test_and_set_explicit( volatile atomic_flag *Flag, memory_order Order ) _NOEXCEPT; inline bool atomic_flag_test_and_set_explicit( atomic_flag *Flag, memory_order Order ) _NOEXCEPT; ...
_Bool atomic_flag_test_and_set_explicit( volatile atomic_flag *object, memory_order order); void atomic_flag_clear(volatile atomic_flag *object); void atomic_flag_clear_explicit( volatile atomic_flag *object, memory_order order); C++ synopsis #include <atomic> namespace std { bool atomic_fl...
_Bool atomic_flag_test_and_set_explicit( volatile atomic_flag* obj, memory_order order ); (2) (C11 起) 原子地更改 obj 所指向的 atomic_flag 的状态为设置( true),并返回先前值。第一版本按 memory_order_seq_cst 排序内存访问,第二版本按 order 排序内存访问。 参数是为指向 volatile atomic_fla...
bool atomic_flag_test_and_set_explicit( std::atomic_flag* obj, std::memory_order order ) noexcept; (4) (C++11 起) 将std::atomic_flag 的状态原子地更改为设置(true),并返回它先前保有的值。 1,2) 内存同步定序是 std::memory_order_seq_cst。3...
通过将指定的 memory_order 约束设置一个 atomic_flag 对象的 bool 标志传递给 true,。复制 inline bool atomic_flag_test_and_set_explicit( volatile atomic_flag *Flag, memory_order Order ) _NOEXCEPT; inline bool atomic_flag_test_and_set_explicit( atomic_flag *Flag, memory_order Order ) _...
Sets the bool flag in an atomic_flag object to true, within the specified memory_order constraints.複製 inline bool atomic_flag_test_and_set_explicit( volatile atomic_flag *Flag, memory_order Order ) _NOEXCEPT; inline bool atomic_flag_test_and_set_explicit( atomic_flag *Flag, memory_ord...
obj-pointer tostd::atomic_flagto access order-the memory synchronization order Return value The value previously held by the flag pointed to byobj. Notes std::atomic_flag_test_and_setandstd::atomic_flag_test_and_set_explicitcan be implemented asobj->test_and_set()andobj->test_and_set(ord...
inline bool atomic_flag_test_and_set_explicit( volatile atomic_flag *Flag, memory_order Order ) _NOEXCEPT; inline bool atomic_flag_test_and_set_explicit( atomic_flag *Flag, memory_order Order ) _NOEXCEPT; ПараметрыFlagУказательнаобъект atomic_flag. Orde...
_Bool atomic_flag_test_and_set( volatile atomic_flag* obj ); (1) (since C11) _Bool atomic_flag_test_and_set_explicit( volatile atomic_flag* obj, memory_order order ); (2) (since C11) Atomically changes the state of a atomic_flag pointed to by obj to set (true) and returns the...
Sets the bool flag in an atomic_flag object to true, within the specified memory_order constraints.复制 inline bool atomic_flag_test_and_set_explicit( volatile atomic_flag *Flag, memory_order Order ) _NOEXCEPT; inline bool atomic_flag_test_and_set_explicit( atomic_flag *Flag, memory_order...