std::atomic_ref<T>::is_always_lock_free
来自cppreference.com
< cpp | atomic | atomic ref
并发支持库
|
|
std::atomic_ref
成员函数 | ||||
常量 | ||||
atomic_ref::is_always_lock_free
|
||||
特化的成员函数 | ||||
static
constexpr
bool
is_always_lock_free =
/*implementation-defined*/;
|
(C++20 起) | |
若此 atomic_ref
类型始终免锁则为 true
,而若它决不或有时免锁则为
false
。
此常量的值与成员函数 is_lock_free 的结果一致。
参阅
检查该 atomic_ref 对象是否免锁 (公开成员函数) |