atomic_flag_clear, atomic_flag_clear_explicit
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <stdatomic.h> 中定义
|
||
| void atomic_flag_clear( volatile atomic_flag* obj ); |
(1) | |
| void atomic_flag_clear_explicit( volatile atomic_flag* obj, memory_order order ); |
(2) | |
atomic_flag状态的原子变化所指向的obj清除(false)。的第一个版本的订单存储器访问根据memory_order_seq_cst,根据order.原文:
Atomically changes the state of a
atomic_flag pointed to by obj to clear (false). The first version orders memory accesses according to memory_order_seq_cst, the second version orders memory accesses according to order.[编辑] 参数
| obj | - | 指针的原子标志要修改的对象
原文: pointer to the atomic flag object to modify |
| order | - | 内存同步进行此操作的顺序:所有的允许值
原文: the memory synchronization ordering for this operation: all values are permitted |
[编辑] 返回值
(无)
[编辑] 另请参阅
| 的atomic_flag设置为true,并返回旧的值 原文: sets an atomic_flag to true and returns the old value (函数) | |
| C++ documentation for atomic_flag_clear, atomic_flag_clear_explicit
| |