C参考手册
原子操作 | Atomic operations
atomic_flag
Defined in header <stdatomic.h> |
|
|
---|---|---|
struct atomic_flag; |
|
(since C11) |
atomic_flag
是一个原子布尔类型。不像其他原子类型,它保证是无锁的。不像atomic_bool
,atomic_flag
不提供加载或存储操作。
参考
- C11标准(ISO/IEC 9899:2011):
- 7.17.1 / 4 atomic_flag(p: 273)
- 7.17.8原子旗的类型和操作(p: 285-286)