首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::atomic_flag_clear

Defined in header <atomic>

?

?

?

(1)

(since C++11)

void atomic_flag_clear( volatile std::atomic_flag* p );

?

void atomic_flag_clear( std::atomic_flag* p );

?

?

(2)

(since C++11)

void atomic_flag_clear_explicit( volatile std::atomic_flag* p, std::memory_order order );

?

void atomic_flag_clear_explicit( std::atomic_flag* p, std::memory_order order );

?

原子地更改std::atomic_flag指...p清除%28false29%。

参数

p

-

pointer to std::atomic_flag to access

order

-

the memory sycnhronization ordering for this operation: only std::memory_order_relaxed, std::memory_order_release, or std::memory_order_seq_cst are permitted.

返回值

没有。

例外

noexcept规格:

noexcept

可能的实施

第一版

*。

空隙原子[医]旗子[医]清除%28易失性STD::原子[医]旗子%2AP%29{p->清除%28%29;}

第二版

空隙原子[医]旗子[医]清除%28 std::原子[医]旗子%2AP%29{p->清除%28%29;}

第三版

空隙原子[医]旗子[医]清澈[医]显式%28易失性STD::原子[医]旗子%2AP,STD::内存[医]命令顺序%29{p->清除%28 Order%29;}

第四版

空隙原子[医]旗子[医]清澈[医]显式%28 std::原子[医]旗子%2AP,STD::内存[医]命令顺序%29{p->清除%28 Order%29;}

另见

atomic_flag (C++11)

the lock-free boolean atomic type (class)

atomic_flag_test_and_setatomic_flag_test_and_set_explicit (C++11)(C++11)

atomically sets the flag to true and returns its previous value (function)

memory_order (C++11)

defines memory ordering constraints for the given atomic operation (typedef)

C原子文档[医]旗子[医]清晰的,原子的[医]旗子[医]清澈[医]显式

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com