std::atomic_ref<T>::is_always_lock_free
来自 cppreference.cn
< cpp | atomic | atomic ref
static constexpr bool is_always_lock_free = /*实现定义*/; |
(自 C++20 起) | |
如果在此 atomic_ref
类型上的操作始终是无锁的,则等于 true,如果从不或有时是无锁的,则等于 false。
此常量的值与成员函数 is_lock_free 的结果一致。
[编辑] 参见
检查 atomic_ref 对象是否是无锁的(公共成员函数) |