|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <stdatomic.h> | ||
typedefstruct/* unspecified */ atomic_flag; | (since C11) | |
atomic_flag is an atomic boolean type. Unlike other atomic types, it is guaranteed to be lock-free. Unlikeatomic_bool,atomic_flag does not provide load or store operations.
(C11) | initializes a newatomic_flag (macro constant)[edit] |
| sets an atomic_flag to true and returns the old value (function)[edit] | |
| sets an atomic_flag to false (function)[edit] | |
C++ documentation foratomic_flag | |