std::atomic_flag::clear

From Cppreference

Jump to: navigation, search
Defined in header <atomic>

void clear( std::memory_order order = std::memory_order_seq_cst ) volatile;
(1) (C++11 feature)
(2) (C++11 feature)

Atomically changes the state of a std::atomic_flag to clear (false).

[edit] Parameters

order - the memory sycnhronization ordering for this operation

[edit] Exceptions

noexcept specification:  
noexcept

  (C++11 feature)

[edit] See also

test_and_set
atomically sets the flag to true and obtains its previous value
(public member function)
atomic_flag_clear
atomic_flag_clear_explicit
(C++11)
(C++11)
atomically sets the value of the flag to false
(function)
memory_order (C++11)
defines memory ordering constraints for the given atomic operation
(typedef)