std::recursive_mutex::unlock

Unlocks the mutex if its level of ownership is 1 (there was exactly one more call to lock() than there were calls to unlock() made by this thread), reduces the level of ownership by 1 otherwise.

# Declarations

void unlock();

(since C++11)

# Return value

(none)

# Notes

unlock() is usually not called directly: std::unique_lock and std::lock_guard are used to manage exclusive locking.

# Example

This section is incompleteReason: no example

# See also