Documentation Home

Destroys a std::shared_lock instance and unlocks the corresponding mutex if it is owned by the destroyed instance.

~shared_lock();

Effects:

If this->owns_lock() would return true, calls this->mutex()->unlock_shared().

Throws:

Nothing.

Header

#include <shared_mutex>

See Also