unique_lock::owns_lock Method

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft