STD::SHARED_LOCK(3cxx)
πΈ NAME πΈ
std::shared_lock< _Mutex > β shared_lock. Thatβs the name, bestie, and this is the libstdc++ manual page for std::shared_lock< _Mutex >(3cxx). We are so back. π
β¨ SYNOPSIS β¨
#include <shared_mutex>
π Public Types π
typedef _Mutex mutex_typeβ the public typedef, exactly as printed. Slay.
π Public Member Functions π
Okay, deep breath, because every single member function is about to show up. No skips, no edits, no βIβll just summarizeβ behavior. π ββοΈ
shared_lock (mutex_type &__m)β exact signature from the page. Present and accounted for. β¨shared_lock (mutex_type &__m, adopt_lock_t)β yep, this one too. πtemplate<typename _Rep , typename _Period > shared_lock (mutex_type &__m, const chrono::duration< _Rep, _Period > &__rel_time)β template energy, preserved character for character. π¦template<typename _Clock , typename _Duration > shared_lock (mutex_type &__m, const chrono::time_point< _Clock, _Duration > &__abs_time)β another template, another exact signature, no cap. πshared_lock (mutex_type &__m, defer_lock_t) noexceptβnoexceptis right there, bestie. πΈshared_lock (mutex_type &__m, try_to_lock_t)β present, untouched, iconic. πshared_lock (shared_lock &&__sl) noexceptβ exact signature,noexceptincluded. π₯shared_lock (shared_lock const &)=deleteβ the=deleteis not a typo, itβs literally in the source page. πvoid lock ()β this exact member function. No renaming. Periodt. πmutex_type * mutex () const noexceptβ pointer,const,noexcept, all kept. πoperator bool () const noexceptβ bool conversion signature, exactly as printed. βshared_lock & operator= (shared_lock &&__sl) noexceptβ assignment signature,noexceptand all. πshared_lock & operator= (shared_lock const &)=deleteβ copy assignment is deleted right here, no edits. πbool owns_lock () const noexceptβ exact signature. πmutex_type * release () noexceptβ exact signature,noexceptstays. π§void swap (shared_lock &__u) noexceptβ swap signature, untouched. πbool try_lock ()β yes, this one. π¦template<typename _Rep , typename _Period > bool try_lock_for (const chrono::duration< _Rep, _Period > &__rel_time)β template and all, preserved. πtemplate<typename _Clock , typename _Duration > bool try_lock_until (const chrono::time_point< _Clock, _Duration > &__abs_time)β last template signature, still exact. β¨void unlock ()β and this one. Whole list ate. π
π Detailed Description π
The detailed description is literally this block, and Iβm keeping the weird quote exactly because itβs in the original:
template<typename _Mutex>
class std::shared_lock< _Mutex >"shared_lock
π Author π
Author: Generated automatically by Doxygen for libstdc++ from the source code.
And thatβs the whole page, bestie! π«Ά Footer vibes: the source/version text says libstdc++, and the title in the footer is std::shared_lock< _Mutex >(3cxx). No date was printed in the original footer, so Iβm not making one up β periodt. πβ¨
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms