unique_lock::owns_lock Method
Specifies whether the calling thread owns the associated mutex.
bool owns_lock() const _NOEXCEPT;
Return Value
true if the thread owns the mutex; otherwise, false.
Requirements
Header: mutex
Namespace: std
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Specifies whether the calling thread owns the associated mutex.
bool owns_lock() const _NOEXCEPT;
true if the thread owns the mutex; otherwise, false.
Header: mutex
Namespace: std