函数
<atomic>

std::atomic_flag_clear_explicit

void atomic_flag_clear (volatile atomic_flag* obj, memory_order sync) noexcept;void atomic_flag_clear (atomic_flag* obj, memory_order sync) noexcept;
Clear atomic flag (explicit memory order)
Clears obj, setting its flag value to false.

See atomic_flag::clear for the equivalent member function of atomic_flag.

参数

obj
Pointer to the atomic_flag object to clear.
sync
操作的同步模式。
This shall be a values of the enum type memory_order.

返回值



数据竞争

无数据竞争(原子操作)。内存顺序由参数 sync 指定。

异常安全

无异常保证: 绝不抛出异常。

另见