Documentation Home

Releases a shared-ownership lock on the mutex associated with *this.

void unlock();

Preconditions:

this->mutex()!=NULL, this->owns_lock()==true.

Effects:

Calls this->mutex()->unlock_shared().

Throws:

Any exceptions thrown by this->mutex()->unlock_shared(). std::system_error with an error code of std::errc::operation_not_permitted if this->owns_lock()==false on entry.

Postcondition:

this->owns_lock()==false.

Header

#include <shared_mutex>

See Also