std::atomic_ref<T>:: is_always_lock_free
From cppreference.net
<
cpp
|
atomic
|
atomic ref
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::atomic_ref
| Member functions | ||||
|
(C++26)
|
||||
|
Operations for arithmetic types
(except
bool
and pointer-to-object)
|
||||
|
Operations for integral types
(except
bool
and pointer-to-object)
|
||||
|
(C++26)
|
||||
|
(C++26)
|
||||
|
Operations for integral types
(except
bool
)
|
||||
| Constants | ||||
|
atomic_ref::is_always_lock_free
|
||||
|
static
constexpr
bool
is_always_lock_free
=
/*implementation-defined*/
;
|
(C++20부터) | |
이
atomic_ref
타입에 대한 연산이 항상 lock-free이면
true
와 같고, 절대 lock-free가 아니거나 때때로 lock-free인 경우
false
와 같습니다.
이 상수의 값은 멤버 함수 is_lock_free 의 결과와 일치합니다.
참고 항목
atomic_ref
객체가 lock-free인지 확인합니다
(public member function) |