std::lock_guard<Mutex>::~lock_guard (3) - Linux Manuals

std::lock_guard<Mutex>::~lock_guard: std::lock_guard<Mutex>::~lock_guard

NAME

std::lock_guard<Mutex>::~lock_guard - std::lock_guard<Mutex>::~lock_guard

Synopsis


~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.