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