Documentation Home

Releases a shared lock on a std::shared_timed_mutex object held by the current thread.

void unlock_shared();

Preconditions:

The calling thread must hold a shared lock on *this.

Effects:

Releases the lock on *this held by the current thread. If any threads are blocked waiting to acquire an exclusive lock on *this, unblock one of them.

Postconditions:

*this is not locked by the calling thread.

Throws:

Nothing.

Header

#include <shared_mutex>

See Also