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