std::__shared_mutex_cv(3cxx)

πŸ“¦
version 9.5.0 Β· 3 versions
, in ubuntu noble

πŸ’– NAME πŸ’–

std::__shared_mutex_cv β€” bestie, it's a shared mutex type, and it's implemented using std::condition_variable. that's the whole vibe. no cap.


✨ SYNOPSIS ✨

okay so first things first, you gotta pull it in:

#include <shared_mutex>

Inherited by std::shared_timed_mutex [private] β€” yeah she's the secret parent, iykyk.

🌸 Public Member Functions 🌸

  • __shared_mutex_cv (const __shared_mutex_cv &) =delete β€” copy constructor? deleted. not today, babes.
  • void lock ()
  • void lock_shared ()
  • __shared_mutex_cv & operator= (const __shared_mutex_cv &) =delete β€” assignment? also deleted. she does not do copies πŸ’…
  • bool try_lock ()
  • bool try_lock_shared ()
  • void unlock ()
  • void unlock_shared ()

🫢 Friends 🫢

  • class shared_timed_mutex

πŸ¦‹ Detailed Description πŸ¦‹

A shared mutex type implemented using std::condition_variable. like, that's literally her whole thing. she's the condition-variable-flavoured shared mutex. iconic behaviour, honestly.

Definition at line 255 of file shared_mutex.


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

πŸ’œ std::__shared_mutex_cv::__shared_mutex_cv () [inline]

Definition at line 304 of file shared_mutex.

πŸ’œ std::__shared_mutex_cv::~__shared_mutex_cv () [inline]

Definition at line 306 of file shared_mutex.


⭐ Member Function Documentation ⭐

🌈 void std::__shared_mutex_cv::lock () [inline]

Definition at line 317 of file shared_mutex.

🌈 void std::__shared_mutex_cv::lock_shared () [inline]

Definition at line 353 of file shared_mutex.

🌈 bool std::__shared_mutex_cv::try_lock () [inline]

Definition at line 328 of file shared_mutex.

🌈 bool std::__shared_mutex_cv::try_lock_shared () [inline]

Definition at line 361 of file shared_mutex.

🌈 void std::__shared_mutex_cv::unlock () [inline]

Definition at line 340 of file shared_mutex.

🌈 void std::__shared_mutex_cv::unlock_shared () [inline]

Definition at line 375 of file shared_mutex.


πŸ’– friend class shared_timed_mutex [friend]

Definition at line 257 of file shared_mutex.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. (not a human author, just a robot doing its thing ✨)


okay bestie that's the whole page!! this one's from libstdc++, it's page std::__shared_mutex_cv(3cxx), and it's giving shared-mutex-but-with-condition-variable energy. go forth and lock responsibly πŸ’…πŸ«ΆπŸŒΈ

πŸ“¦ where this page comes from