std::lock_g...~lock_guard(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay so we're looking at the std::lock_g...~lock_guard(3) page from the C++ Standard Libary manual, and the main character is std::lock_guard::~lock_guard β€” literally std::lock_guard::~lock_guard, same energy both times. no cap. πŸ’…

✨ Synopsis ✨

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

She releases the ownership of the owned mutex. that's the whole job, and she ate. 🫢

Effectively calls m.unlock() where m is the mutex passed to the lock_guard's constructor. πŸ”“βœ¨


bestie, it's giving "destructor with one little unlock to do" β€” nothing extra, nothing shady.

sign-off sparkle: source http://cppreference.com, date 2024.06.10, page std::lock_g...~lock_guard(3) β€” mwah, bye πŸ’‹

πŸ“¦ where this page comes from