cpp / latest / thread / lock_guard / ~lock_guard.html /

std::lock_guard<Mutex>::~lock_guard

~lock_guard();
(since C++11)

Releases the ownership of the owned mutex.

Effectively calls m.unlock() where m is the mutex passed to the lock_guard's constructor.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/thread/lock_guard/%7Elock_guard