std::shared...shared_mutex(3)
π 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)
- Constructs the mutex. After the call, the mutex is in the unlocked state. Periodt. πβ¨
- 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
- 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