chsvlib
chsv helper source code

◆ owns_lock()

bool owns_lock ( ) const
noexcept

Checks whether the current shared_lock owns its mutex object.

Returns
true, if the current shared_lock has an associated shared_mutex object and the latter is locked via the shared_lock. Otherwise, the method returns false.