atomic_flag

Defined in header <stdatomic.h>
struct atomic_flag;
(since C11)

atomic_flag is an atomic boolean type. Unlike other atomic types, it is guaranteed to be lock-free. Unlike atomic_bool, atomic_flag does not provide load or store operations.

References

See also

ATOMIC_FLAG_INIT
(C11)
initializes a new atomic_flag
(macro constant)
atomic_flag_test_and_setatomic_flag_test_and_set_explicit
(C11)
sets an atomic_flag to true and returns the old value
(function)
atomic_flag_clearatomic_flag_clear_explicit
(C11)
sets an atomic_flag to false
(function)
C++ documentation for atomic_flag

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/c/atomic/atomic_flag