std::lock_guard::~lock_guard - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::lock_guard::~lock_guard

From cppreference.com
< cpp‎ | thread‎ | lock guard

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

Releases the ownership of the owned mutex or mutexes (since C++17).

Effectively calls m.unlock() where `m` is the mutex passed to the `lock_guard`'s constructor. | (until C++17)
Effectively calls unlock() on every mutex from the pack of mutexes passed to the `lock_guard`'s constructor. | (since C++17)

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/thread/lock_guard/%7Elock_guard&oldid=81574"