std::shared...hared_mutex(3)

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

πŸ’… NAME ✨

std::shared_mutex::~shared_mutex β€” bestie, this is the destructor page for std::shared_mutex, from the C++ Standard Libary manual 🫢


🌸 Synopsis 🌸

~shared_mutex();

It destroys the mutex. Periodt. πŸ’–

🚨 okay so this part is serious: The behavior is undefined if the mutex is owned by any thread or if any thread terminates while holding any ownership of the mutex. No cap, that's the exact caveat β€” do not play with it 😭

πŸ¦‹ See also πŸ¦‹

  • C documentation for mtx_destroy πŸ‘€

mwah πŸ’‹ β€” source/version: cppreference.com, dated 2024.06.10 βœ¨πŸŽ€

πŸ“¦ where this page comes from