atomic_flag

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

  • C11 standard (ISO/IEC 9899:2011):
    • 7.17.1/4 atomic_flag (p: 273)
    • 7.17.8 Atomic flag type and operations (p: 285-286)

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部