function
<atomic>

std::atomic_flag_clear

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

This operation is atomic and uses sequential consistency (memory_order_seq_cst). To clear value with a different memory ordering, see atomic_flag_clear_explicit.

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

Parameters

obj
Pointer to the atomic_flag object to clear.

Return value

none

Data races

No data races (atomic operation). The operation uses sequential consistency (memory_order_seq_cst).

Exception safety

No-throw guarantee: never throws exceptions.

See also