std::lock_guard<Mutex>::~lock_guard

From cppreference.com
< cpp‎ | thread‎ | lock guard
 
 
Thread support library
Threads
(C++11)
this_thread namespace
(C++11)
(C++11)
(C++11)
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
 
std::lock_guard
Member functions
lock_guard::~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.