std::shared_timed_mutex(3)
π NAME π
std::shared_timed_mutex β bestie, it's the standard shared timed mutex type. periodt.
β¨ SYNOPSIS β¨
First thing's first, you gotta pull it in:
#include <shared_mutex>
πΈ Public Member Functions πΈ
okay so here's the whole roster, no gatekeeping:
shared_timed_mutex (const shared_timed_mutex &)=delete
void lock ()
void lock_shared ()
shared_timed_mutex & operator= (const shared_timed_mutex &)=delete
bool try_lock ()
template<typename _Rep, typename _Period> bool try_lock_for (const
chrono::duration< _Rep, _Period > &__rtime)
bool try_lock_shared ()
template<typename _Rep, typename _Period> bool try_lock_shared_for
(const chrono::duration< _Rep, _Period > &__rtime)
template<typename _Clock, typename _Duration> bool try_lock_shared_until
(const chrono::time_point< _Clock, _Duration > &__atime)
template<typename _Duration> bool try_lock_shared_until (const
chrono::time_point< chrono::steady_clock, _Duration > &__atime)
template<typename _Duration> bool try_lock_shared_until (const
chrono::time_point< chrono::system_clock, _Duration > &__atime)
template<typename _Clock, typename _Duration> bool try_lock_until (const
chrono::time_point< _Clock, _Duration > &__atime)
template<typename _Duration> bool try_lock_until (const
chrono::time_point< chrono::steady_clock, _Duration > &__atime)
template<typename _Duration> bool try_lock_until (const
chrono::time_point< chrono::system_clock, _Duration > &__atime)
void unlock ()
void unlock_shared ()
look at that copy constructor and that assignment operator both being =delete π they literally said "not me, not today" β you cannot copy this thing and you cannot assign it. iconic behaviour, honestly.
π¦ Detailed Description π¦
The standard shared timed mutex type. π
That's the whole vibe: it's the standard one, it's shared, it's timed, it's a mutex. main character energy π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
okay that's the whole page bestie, go forth and lock responsibly π«Ά β this one came to you from libstdc++, page std::shared_timed_mutex(3), and yeah it was auto-generated by Doxygen from the source code, no cap πβ¨
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms