Documentation Home

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

void unlock();

Preconditions:

The calling thread must hold an exclusive lock on *this.

Effects:

Releases the exclusive 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. Unblock any threads waiting to acquire a shared-ownership lock on *this.

Postconditions:

*this is not locked by the calling thread.

Throws:

Nothing.

Header

#include <shared_mutex>

See Also