std::__shared_mutex_cv(3cxx)
π 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.
π§ Friends And Related Symbol Documentation π§
π 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
- ubuntu noble: libstdc++-9-doc 9.5.0-6ubuntu2
- ubuntu noble: libstdc++-9-doc 9.5.0-6ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms