atomic_flag::test_and_set Method
Sets the bool flag that is stored in *this to true, within the specified memory_order constraints.
bool atomic_flag::test_and_set(
memory_order Order = memory_order_seq_cst
) volatile _NOEXCEPT;
bool atomic_flag::test_and_set(
memory_order Order = memory_order_seq_cst
) _NOEXCEPT;
- Order
A memory_order.
The initial value of the flag that is stored in *this.
Header: atomic
Namespace: std