std::atomic_ref<T>::is_always_lock_free
來自 cppreference.com
< cpp | atomic | atomic ref
static constexpr bool is_always_lock_free = /*implementation-defined*/; |
(C++20 起) | |
如果此 `atomic_ref` 型別的操作始終是無鎖的,則等於 true;如果從不或有時無鎖,則等於 false。
此常量的值與成員函式 is_lock_free 的結果一致。
[編輯] 另請參閱
檢查 `atomic_ref` 物件是否是無鎖的 (公共成員函式) |