std::scoped...scoped_lock(3)
π NAME π
Okay bestie, this is std::scoped...scoped_lock(3) from the C++ Standard Libary manual β yes, that's the manual name as written β and it's all about the destructor:
std::scoped_lock::~scoped_lockβ literallystd::scoped_lock::~scoped_lockagain, that's the name, no cap π
β¨ Synopsis β¨
Here's the signature, short and iconic:
~scoped_lock(); (since C++17)
So what does this destructor do? It releases the ownership of the owned mutexes. β¨
Effectively, it calls unlock() on every mutex from the pack of mutexes passed to the scoped_lock's constructor. That's the whole vibe. π
Source/version: http://cppreference.com, dated 2024.06.10. Bye bestie, go live your scoped-lock truth π«Άβ¨π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms