std::shared...shared_mutex(3)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to std::shared...shared_mutex(3) β€” the page from the C++ Standard Libary (yes, that's literally how the manual name appears up top πŸ’…), all about std::shared_mutex::shared_mutex. Yes, the name really does say it twice. Iconic behavior, honestly.

✨ Synopsis ✨

shared_mutex();                               (1) (since C++17)
shared_mutex( const shared_mutex& ) = delete; (2) (since C++17)
  1. Constructs the mutex. After the call, the mutex is in the unlocked state. Periodt. πŸ”“βœ¨
  2. Copy constructor is deleted. Not available. Gone. Do not pass go, do not collect a copy. πŸ’€

πŸŽ€ Parameters πŸŽ€

none β€” literally none, bestie 🫢

πŸ¦‹ Exceptions πŸ¦‹

std::system_error if the construction is unsuccessful. So if the vibe check fails at construction time, that's the exception you're getting 😭

🌈 See also 🌈

  • C documentation for mtx_init

mwah πŸ’‹ this little page came from http://cppreference.com and is dated 2024.06.10 β€” go forth and construct your mutex, bestie, and slay responsibly βœ¨πŸ‘‘

πŸ“¦ where this page comes from