std::shared_lock::mutex(3)
π NAME π
std::shared_lock::mutex β okay so literally it's std::shared_lock::mutex, that's the whole name bestie, no cap π
Welcome to the C++ Standard Library corner of the group chat, this page is filed as std::shared_lock::mutex(3) π¦
β¨ SYNOPSIS β¨
mutex_type* mutex() const noexcept; (since C++14)
So the way this works is it returns a pointer to the associated mutex, or a null pointer if there is no associated mutex π«Ά
Heads up: this one's been iconic since C++14 π
πΈ PARAMETERS πΈ
- (none) β yeah literally nothing, zero arguments, she takes no notes, she simply exists π
π RETURN VALUE π
Pointer to the associated mutex, or a null pointer if there is no associated mutex π₯
Periodt. That's the whole vibe check β you either get a pointer to the mutex, or you get null because there's just no associated mutex to point at π
π§ EXAMPLE π§
This section is incomplete.
Reason: no example.
Not me leaving the example section empty π bestie the docs said "no example" and I'm just the messenger, fr fr π
π CATEGORY π
- Todo no example π
And that's a wrap, my love! π Quick cute sign-off: this little masterpiece lives over at http://cppreference.com, dated 2024.06.10, and its official glow-up tag is std::shared_lock::mutex(3) β Slay, go read your mutex pointers 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