log4cpp::threading(3)
πΈ NAME πΈ
Okay bestie, welcome to log4cpp::threading(3) β from the Library Functions Manual, no less. This is the threading little corner of log4cpp, and the docs are here to hand you the classes, typedefs, and the one function in this page. Lowkey iconic, highkey useful. π
β¨ SYNOPSIS β¨
π Classes π
class MSMutexβ a simple object wrapper aroundCreateMutex()andDeleteMutex().class MSScopedLockβ a simple object wrapper aroundWaitForSingleObject()andReleaseMutex().class Mutexβ just the class name, no extra description attached. Main character energy with no caption.class ScopedLockβ the description is literallydefinition of ScopedLock;β semicolon included, because we keep the receipts.class ThreadLocalDataHolderβ this class holds Thread local data of typeT, i.e. β and yes, the original line literally ends on thati.e.π«Ά
π§΅ Typedefs π§΅
typedef boost::mutex Mutexβ the docs call thisDummy type 'int' for Mutex.β no cap, that's the actual wording.typedef boost::mutex::scoped_lock ScopedLockβ and this one is calledDummy type 'int' defintion of ScopedLock;.β typodefintionis preserved, because we do not edit the source's little quirks. π
π₯ Functions π₯
static std::string getThreadId ()β return an identifier for the current thread.
π Typedef Documentation π
typedef omni_mutex log4cpp::threading::Mutex
So this documented typedef is typedef omni_mutex log4cpp::threading::Mutex. The description opens with Dummy type 'int' for Mutex. β yes, really. It's a simple, non recursive Mutex.
The docs also say, quote-for-quote: Yes, this adds a bit of overhead in the for of extra memory, but unfortunately 'void' is illegal. That for is their spelling, not mine β I'm just holding the receipt. π§Ύ
Equivalent to Boost.Threads boost::mutex.
typedef omni_mutex_lock log4cpp::threading::ScopedLock
This one is typedef omni_mutex_lock log4cpp::threading::ScopedLock. Its description starts with Dummy type 'int' defintion of ScopedLock;. β again, defintion stays exactly as the page gives it. It's a simple "resource acquisition is initialization" idiom type lock for Mutex.
Equivalent to Boost.Threads boost::scoped_lock.
π§΅ Function Documentation π§΅
std::string log4cpp::threading::getThreadId () [static]
Return an identifier for the current thread. returns the thread ID.
What these identifiers look like is completely up to the underlying thread library.
What these identifiers look like is completely up to the underlying thread library. OmniThreads returns the POSIX thread Id.
Bestie, yes β the page says that sentence twice. I'm not summarising it away, because every detail stays. Periodt. β¨
π Author π
Generated automatically by Doxygen for log4cpp from the source code.
Bye bestie π β this footer's giving log4cpp, Version 1.1, and the manual page tag log4cpp::threading(3); that's the source/version and page signature at the end, and there's no extra date printed in the footer, so I'm not inventing one. Slay. π
π¦ where this page comes from
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms