std::shared_lock::mutex(3)

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

πŸŽ€ 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