# std::scoped_lock<MutexTypes...>::~scoped_lock

> C++ Atlas: `cppatlas.com/w/cpp/thread/scoped_lock/~scoped_lock` | Source: https://en.cppreference.com/w/cpp/thread/scoped_lock/~scoped_lock | Domain: Concurrency support | Standards: C++17

Releases the ownership of the owned mutexes.

## Official Specification Summary (cppreference)

```cpp
~scoped_lock(); // (since C++17)
```

Releases the ownership of the owned mutexes.

Effectively calls `unlock()` on every mutex from the pack of mutexes passed to the `scoped_lock`'s constructor.

---
Attribution: content from https://en.cppreference.com/w/cpp/thread/scoped_lock/~scoped_lock (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.