meta data for this page
This is an old revision of the document!
stdatomic.h
atomic_flag
atomic_flagis anatomic booleantype variable that is guaranteed to be lock-free.
It is used to provide synchronization within threads in programs. Unlikeatomic_bool,
atomic_flagdoes not provide load or store operations.
atomic vars
Atomic variables are not guaranteed to be lock-free. It depends on implementation, e.g: Atomic access can be provided by spin locks.