Reference

<atomic>

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

atomic_flag_clear
Clear atomic flag (function)
atomic_flag_test_and_set_explicit
Test and set atomic flag (explicit memory order) (function)
atomic_flag::clear
Clear flag (public member function)

AltStyle によって変換されたページ (->オリジナル) /