std::atomic_flag
std::atomic_flag
Defined in header <atomic> | ||
---|---|---|
class atomic_flag; | (since C++11) |
std::atomic_flag
is an atomic boolean type. Unlike all specializations of std::atomic
, it is guaranteed to be lock-free. Unlike std::atomic<bool>
, std::atomic_flag
does not provide load or store