unique_lock::operator bool Operator
Specifies whether the calling thread has ownership of the associated mutex.
explicit operator bool() _NOEXCEPT
Return Value
true if the thread owns the mutex; otherwise false.
Requirements
Header: mutex
Namespace: std