mutex(3)
π
mutex(3) β the Library Functions Manual cutie π
okay so this page is from the Library Functions Manual and it's giving Standard C++ Library header energy. we're keeping every single detail, no cap, because the vibe is cute but the facts are sacred β¨
β¨ NAME β¨
mutexβ the original line ismutex -, and there's literally no description after the dash, so we're not inventing one, periodt π
π¦ SYNOPSIS π¦
here's the whole cast, bestie β no skipping, fr fr.
π Classes π
struct std::adopt_lock_tβ assume the calling thread has already obtained mutex ownership and manage it.struct std::defer_lock_tβ do not acquire ownership of the mutex.class std::lock_errorβ thrown to indicate errors with lock operations.class std::lock_guard< _Mutex >β scoped lock idiom.class std::mutexβmutex(yes, that is the whole description, and honestly? iconic minimalism π)struct std::once_flagβonce_flagclass std::recursive_mutexβrecursive_mutexclass std::recursive_timed_mutexβrecursive_timed_mutexclass std::timed_mutexβtimed_mutexstruct std::try_to_lock_tβ try to acquire ownership of the mutex without blocking.class std::unique_lock< _Mutex >βunique_lock
π Namespaces π
namespace stdβ the namespace, bestie. that's the entry π«Ά
β Defines β
#define _GLIBCXX_MUTEXβ the define, exactly as written, no edits π
π₯ Functions π₯
these are the function signatures, verbatim β we do not touch the code, ever.
unique_lock< mutex > & std::__get_once_functor_lock ()void std::__once_proxy ()template<typename _Callable , typename... _Args> void std::call_once (once_flag &__once, _Callable __f, _Args &&...__args)template<typename _L1 , typename _L2 , typename... _L3> void std::lock (_L1 &, _L2 &, _L3 &...)template<typename _Mutex > void std::swap (unique_lock< _Mutex > &__x, unique_lock< _Mutex > &&__y)template<typename _Mutex > void std::swap (unique_lock< _Mutex > &&__x, unique_lock< _Mutex > &__y)template<typename _Mutex > void std::swap (unique_lock< _Mutex > &__x, unique_lock< _Mutex > &__y)template<typename _Lock1 , typename _Lock2 , typename... _Lock3> int std::try_lock (_Lock1 &__l1, _Lock2 &__l2, _Lock3 &...__l3)
π Variables π
function< void()> std::__once_functorconst adopt_lock_t std::adopt_lockconst defer_lock_t std::defer_lockconst try_to_lock_t std::try_to_lock
π Detailed Description π
This is a Standard C++ Library header.
Definition in file mutex.
that's the tea, and yes, it's short and sweet π«β¨
πΈ Author πΈ
Generated automatically by Doxygen for libstdc++ from the source code.
literally generated by Doxygen for libstdc++, so you know it's official-ish π
xoxo, your libstdc++ bestie π this iconic page is dated 21 Apr 2009 and it's literally mutex(3) β byeee π
π¦ where this page comes from
- nixpkgs unstable: std-man-pages 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms