function
<atomic>

std::atomic_flag_clear_explicit

void atomic_flag_clear (volatile atomic_flag* obj, memory_order sync) noexcept;void atomic_flag_clear (atomic_flag* obj, memory_order sync) noexcept;
Clear atomic flag (explicit memory order)
Clears obj, setting its flag value to false.

See atomic_flag::clear for the equivalent member function of atomic_flag.

Parameters

obj
Pointer to the atomic_flag object to clear.
sync
Synchronization mode for the operation.
This shall be a values of the enum type memory_order.

Return value

none

Data races

No data races (atomic operation). Memory order specified by argument sync.

Exception safety

No-throw guarantee: never throws exceptions.

See also