atomic_flag_clear, atomic_flag_clear_explicit
来自cppreference.com
                    
                                        
                    
                    
                                                            
                    |   定义于头文件  <stdatomic.h>
  | 
||
|   void atomic_flag_clear( volatile atomic_flag* obj );  | 
(1) | (C11 起) | 
|   void atomic_flag_clear_explicit( volatile atomic_flag* obj, memory_order order );  | 
(2) | (C11 起) | 
原子地更改 obj 所指向的 atomic_flag 状态为清除( false )。第一版本按照 memory_order_seq_cst 排序内存访问,第二版本根据 order 排序内存访问。
参数为指向 volatile 原子标志的指针,以接受非 volatile 和 volatile (如内存映射 I/O )的原子标志。
参数
| obj | - |   指向要修改的 atomic_flag 对象的指针
 | 
| order | - | 此操作所用的内存同步顺序:允许所有值 | 
返回值
(无)
引用
- C11 standard (ISO/IEC 9899:2011):
 
- 7.17.8.2 The atomic_flag_clear functions (p: 286)
 
参阅
   设置 atomic_flag 为 true 并返回旧值  (函数)  |