log4shib::threading(3)

πŸ“¦ version 2.0.1, in opensuse-leap 16.0

πŸ’– log4shib::threading(3) β€” welcome to the threading page, bestie πŸ’–

Okay so this is log4shib::threading(3), straight out of the Library Functions Manual for log4shib β€” section 3, library functions, periodt. It's giving classes, typedefs, and one function that tells you which thread you're in. Let's get into it, no cap. 🧡✨


✨ NAME ✨

log4shib::threading β€” literally the name, that's the whole vibe. πŸŽ€

🌸 SYNOPSIS 🌸

Here's the whole structure: classes, typedefs, functions. Organized, iconic, lowkey essential.

πŸ‘‘ Classes

  • class MSMutex β€” a simple object wrapper around CreateMutex() and DeleteMutex() 🫢
  • class MSScopedLock β€” a simple object wrapper around WaitForSingleObject() and ReleaseMutex() 😌
  • class Mutex β€” it's a class called Mutex, bestie. That's the info.
  • class ScopedLock β€” definition of ScopedLock; (yes, semicolon included, don't ask πŸ’€)
  • class ThreadLocalDataHolder β€” this class holds Thread local data of type T, i.e. πŸ’Ύ

πŸ¦‹ Typedefs

  • typedef boost::mutex Mutex β€” dummy type 'int' for Mutex. πŸ’€
  • typedef boost::mutex::scoped_lock ScopedLock β€” dummy type 'int' defintion of ScopedLock;. (the typo is canon, not me πŸ™ˆ)

⭐ Functions

  • static std::string getThreadId () β€” return an identifier for the current thread. πŸͺͺ

🧚 Typedef Documentation 🧚

Okay now the spicy details.

typedef omni_mutex log4shib::threading::Mutex

Dummy type 'int' for Mutex. A simple, non recursive Mutex. πŸš«πŸ”

Yes, this adds a bit of overhead in the for of extra memory, but unfortunately 'void' is illegal. πŸ’€ (I know, I know β€” "for of" is exactly what the page says, don't come for me.)

Equivalent to Boost.Threads boost::mutex. ✨

typedef omni_mutex_lock log4shib::threading::ScopedLock

Dummy type 'int' defintion of ScopedLock;. A simple "resource acquisition is initialization" idiom type lock for Mutex. πŸŽ€

Equivalent to Boost.Threads boost::scoped_lock. πŸ’œ


πŸ”₯ Function Documentation πŸ”₯

std::string log4shib::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. πŸ‘‘


🌈 Author 🌈

Generated automatically by Doxygen for log4shib from the source code. πŸ€–πŸ’–


And that's the page, bestie β€” log4shib Version 2.0.1, log4shib::threading(3) signing off with all the threading lore intact. Bye and slay! πŸ’…πŸ«ΆπŸŽ€