std::atomic_flag_clear
From Cppreference
Defined in header <atomic>
|
||
void atomic_flag_clear( volatile std::atomic_flag* p );
|
(1) | (C++11 feature) |
void atomic_flag_clear( std::atomic_flag* p );
|
(2) | (C++11 feature) |
void atomic_flag_clear_explicit( volatile std::atomic_flag* p,
std::memory_order order ) |
(3) | (C++11 feature) |
void atomic_flag_clear_explicit( std::atomic_flag* p,
std::memory_order order ) |
(4) | (C++11 feature) |
Atomically changes the state of a std::atomic_flag pointed to by p to clear (false).
Contents |
[edit] Parameters
p | - | pointer to std::atomic_flag to access |
order | - | the memory sycnhronization ordering for this operation |
[edit] Exceptions
[edit] Equivalent definition
First version |
---|
void atomic_flag_clear(volatile std::atomic_flag* p) { p->clear(); } |
Second version |
void atomic_flag_clear(std::atomic_flag* p) { p->clear(); } |
Third version |
void atomic_flag_clear_explicit(volatile std::atomic_flag* p, std::memory_order order) { p->clear(order); } |
Fourth version |
void atomic_flag_clear_explicit(std::atomic_flag* p, std::memory_order order) { p->clear(order); } |
[edit] See also
|
the lock-free boolean atomic type (class) |
||
|
atomically sets the flag to true and returns its previous value (function) |
||
|
defines memory ordering constraints for the given atomic operation (typedef) |