log4tango::thr...RecursiveMutex(3)
π NAME π
okay so bestie, welcome to the log4tango manual, section 3 β and today's main character is:
log4tango::threading::RecursiveMutex
that's it. that's the whole name section. the docs are giving minimalist π«Ά
β¨ SYNOPSIS β¨
first things first, you gotta pull it in:
#include <MSThreads.hh>
πΈ Public Member Functions πΈ
here's the whole roster, exactly as it's printed β and yes, everything shows up twice (once with an [inline] tag, once without, and the two flavors are listed back to back like twins in matching fits):
RecursiveMutex (void)
~RecursiveMutex (void)
int lock (long timeout_=0)
void unlock (void)
void unlockn (void)
RecursiveMutex (void)
~RecursiveMutex (void)
int lock (long timeout_=0)
void unlock (void)
void unlockn (void)
π Protected Attributes π
the protected lil' internals, no touchy unless you're family:
CRITICAL_SECTION guard_
pthread_mutex_t guard_
pthread_cond_t mutex_available_
π Constructor & Destructor Documentation π
so here's the constructor-and-destructor section, and it's lowkey just the same two signatures listed in both their forms. iconic. we stan a consistent queen π
log4tango::threading::RecursiveMutex::RecursiveMutex (void)[inline]β the inline version, stepping on stage first πlog4tango::threading::RecursiveMutex::~RecursiveMutex (void)[inline]β and its inline goodbye kiss π¦log4tango::threading::RecursiveMutex::RecursiveMutex (void)β the not-inline version, same signature, different outfit β¨log4tango::threading::RecursiveMutex::~RecursiveMutex (void)β the not-inline teardown, matching set π
fr fr, that's all the docs say about them. no parameter notes, no return values, no lore. just vibes and a void. π
π₯ Member Function Documentation π₯
now the functions!! six whole lines, because each one gets an [inline] twin. no cap:
int log4tango::threading::RecursiveMutex::lock (long timeout_ = 0)[inline]β takes along timeout_and it defaults to0, returns anint, and it's the inline one πint log4tango::threading::RecursiveMutex::lock (long timeout_ = 0)β same signature, sametimeout_ = 0default, sameint, just the non-inline listing πvoid log4tango::threading::RecursiveMutex::unlock (void)[inline]β no args, returns nothing, inline energy βvoid log4tango::threading::RecursiveMutex::unlock (void)β the non-inline twin, stillvoidin,voidout πvoid log4tango::threading::RecursiveMutex::unlockn (void)[inline]β yes it's spelledunlocknwith an n on the end, that is not a typo, that is literally the name, i love her πvoid log4tango::threading::RecursiveMutex::unlockn (void)β and its non-inline counterpart, alsounlockn, alsovoidπ§
not me noticing there are exactly zero description paragraphs under any of these π the source docs said "signature only, bestie" and meant it.
π Member Data Documentation π
the protected data members, each one marked [protected], presented exactly as written:
CRITICAL_SECTION log4tango::threading::RecursiveMutex::guard_[protected]β aguard_, typedCRITICAL_SECTIONπpthread_mutex_t log4tango::threading::RecursiveMutex::guard_[protected]β anotherguard_, this time typedpthread_mutex_t. same name, different type, both listed, both protected π«Άpthread_cond_t log4tango::threading::RecursiveMutex::mutex_available_[protected]β andmutex_available_, typedpthread_cond_t, also[protected]πΈ
π¦ Author π¦
- Generated automatically by Doxygen for
log4tangofrom the source code.
so if the prose is a little sparse, blame the robot that wrote it, not me π
Version 5.0.2 Β· Thu Dec 5
and that's the whole page, bestie β version 5.0.2, dated Thu Dec 5, straight from the log4tango docs, with the manual name folded in up top where it belongs. mwah π slay, go forth and recursive-mutex responsibly πβ¨
π¦ where this page comes from
- debian bookworm: liblog4tango-doc 9.3.4+dfsg1-2+deb12u1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms