Documentation Home

Check whether or not *this owns a shared-ownership lock on a mutex.

bool owns_lock() const;

Returns:

true if *this owns a shared-ownership lock on a mutex, false otherwise.

Throws:

Nothing.

Header

#include <shared_mutex>

See Also