Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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;
Parameters
- Order
A memory_order.
Return Value
The initial value of the flag that is stored in *this.
Requirements
Header: atomic
Namespace: std