Destroys a std::unique_lock
instance and unlocks
the corresponding mutex if it is owned by the destroyed instance.
~unique_lock();
If this->owns_lock()
would return true
,
calls this->mutex()->unlock()
.
Nothing.
#include <mutex>