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