Freigeben über


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

See Also

Reference

unique_lock Class

<mutex>