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