std::unique_lock<Mutex>:: operator bool
From cppreference.net
<
cpp
|
thread
|
unique lock
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::unique_lock
| Member functions | ||||
| Locking | ||||
| Modifiers | ||||
| Observers | ||||
|
unique_lock::operator bool
|
||||
| Non-member functions | ||||
|
explicit
operator
bool
(
)
const
noexcept
;
|
(C++11부터) | |
* this 가 잠긴 뮤텍스를 소유하고 있는지 여부를 확인합니다. 효과적으로 owns_lock() 을 호출합니다.
매개변수
(없음)
반환값
true 만약 * this 가 연결된 뮤텍스를 가지고 있고 그것의 소유권을 획득한 경우, false 그렇지 않은 경우.
참고 항목
|
락이 연결된 뮤텍스를 소유(즉, 잠금)하고 있는지 테스트합니다
(public member function) |