LOG4SHIB::THREADING::THREADLOCALDATAHOLDER(3)
π log4shib::threading::ThreadLocalDataHolder< T > β Library Functions Manual π¦
okay so bestie, this is the manual page for log4shib::threading::ThreadLocalDataHolder< T >, and it's literally a thread-local data holder. Let's get into it.
β¨ NAME β¨
log4shib::threading::ThreadLocalDataHolder< T > β this class holds Thread local data of type T, i.e.
(yes, it ends on βi.e.β β iconic cliffhanger, no notes π )
πΈ SYNOPSIS πΈ
#include <BoostThreads.hh>
π Public Types
Three typedefs, all the same, because the docs said why not:
typedef T data_type
typedef T data_type
typedef T data_type
π Public Member Functions
Here's the full list in order. Yes, there are duplicates. Yes, I'm keeping every single one. No cap, we don't erase receipts.
T * get () constT * operator-> () constT & operator* () constT * release ()void reset (T *p=NULL)ThreadLocalDataHolder ()~ThreadLocalDataHolder ()T * get () constT * operator-> () constT & operator* () constT * release ()void reset (T *p=NULL)ThreadLocalDataHolder ()~ThreadLocalDataHolder ()T * get () constβ obtains the Object held for the current thread.T * operator-> () constβ obtains the Object held for the current thread.T & operator* () constβ obtains the Object held for the current thread.T * release ()β releases the Object held for the current thread.void reset (T *p=NULL)β sets a new Object to be held for the current thread.ThreadLocalDataHolder ()~ThreadLocalDataHolder ()T * get () constβ obtains the Object held for the current thread.T * operator-> () constβ obtains the Object held for the current thread.T & operator* () constβ obtains the Object held for the current thread.T * release ()β releases the Object held for the current thread.void reset (T *p=NULL)β sets a new Object to be held for the current thread.ThreadLocalDataHolder ()~ThreadLocalDataHolder ()T * get () constT * operator-> () constT & operator* () constT * release ()void reset (T *p=NULL)
π«Ά Static Public Member Functions
static void freeHolder (void *p)
just one static public member function, and it's freeHolder. periodt.
π Detailed Description π
Template time:
template<typename T>
class log4shib::threading::ThreadLocalDataHolder< T >"This class holds Thread local data of type T, i.e.
(yes, there's a stray quote in there β I didn't do it, the docs did π)
so for each thread, a ThreadLocalDataHolder holds 0 or 1 instance of T. The held object must be heap allocated and will be deleted upon termination of the thread to which it belongs.
The docs then say it again, but with the typo wich β not me, I'm just the messenger: for each thread a ThreadLocalDataHolder holds 0 or 1 instance of T. The held object must be heap allocated and will be deleted upon termination of the thread to wich it belongs. This is an omni_threads based equivalent of Boost.Threads thread_specific_ptr<T> class.
π Member Typedef Documentation π
Three identical typedefs, again:
template<typename T> typedef T log4shib::threading::ThreadLocalDataHolder< T >::data_type
template<typename T> typedef T log4shib::threading::ThreadLocalDataHolder< T >::data_type
template<typename T> typedef T log4shib::threading::ThreadLocalDataHolder< T >::data_type
π§ Constructor & Destructor Documentation π§
Four constructor/destructor pairs, all [inline]. Here's the whole set:
template<typename T> log4shib::threading::ThreadLocalDataHolder< T >::ThreadLocalDataHolder () [inline]
template<typename T> log4shib::threading::ThreadLocalDataHolder< T >::~ThreadLocalDataHolder () [inline]
template<typename T> log4shib::threading::ThreadLocalDataHolder< T >::ThreadLocalDataHolder () [inline]
template<typename T> log4shib::threading::ThreadLocalDataHolder< T >::~ThreadLocalDataHolder () [inline]
template<typename T> log4shib::threading::ThreadLocalDataHolder< T >::ThreadLocalDataHolder () [inline]
template<typename T> log4shib::threading::ThreadLocalDataHolder< T >::~ThreadLocalDataHolder () [inline]
template<typename T> log4shib::threading::ThreadLocalDataHolder< T >::ThreadLocalDataHolder () [inline]
template<typename T> log4shib::threading::ThreadLocalDataHolder< T >::~ThreadLocalDataHolder () [inline]
π₯ Member Function Documentation π₯
Okay, this section is long and repeats itself a lot. I'm giving you every entry in order, with the exact signatures. Deep breath.
template<typename T> void log4shib::threading::ThreadLocalDataHolder< T >::freeHolder (void * p) [inline], [static]template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::get () const [inline]template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::get () const [inline]template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::get () const [inline]β gets the Object held for the current thread. Returns: a pointer to the held Object orNULLif no Object has been set for the current thread.template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::get () const [inline]β gets the Object held for the current thread. Returns: a pointer to the held Object orNULLif no Object has been set for the current thread.template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::get () const [inline]template<typename T> T & log4shib::threading::ThreadLocalDataHolder< T >::operator* () const [inline]template<typename T> T & log4shib::threading::ThreadLocalDataHolder< T >::operator* () const [inline]template<typename T> T & log4shib::threading::ThreadLocalDataHolder< T >::operator* () const [inline]β gets the Object held for the current thread. Precondition:get() != NULL. Returns: a reference to the held Object.template<typename T> T & log4shib::threading::ThreadLocalDataHolder< T >::operator* () const [inline]β gets the Object held for the current thread. Precondition:get() != NULL. Returns: a reference to the held Object.template<typename T> T & log4shib::threading::ThreadLocalDataHolder< T >::operator* () const [inline]template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::operator-> () const [inline]template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::operator-> () const [inline]template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::operator-> () const [inline]β gets the Object held for the current thread. Initially each thread holdsNULL. Returns: a pointer to the held Object orNULLif no Object has been set for the current thread.template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::operator-> () const [inline]β gets the Object held for the current thread. Initially each thread holdsNULL. Returns: a pointer to the held Object orNULLif no Object has been set for the current thread.template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::operator-> () const [inline]template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::release () [inline]template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::release () [inline]template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::release () [inline]β releases the Object held for the current thread. Postcondition:get() == NULL. Returns: a pointer to the Object thas was held for the current thread orNULLif no Object was held.template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::release () [inline]β releases the Object held for the current thread. Postcondition:get() == NULL. Returns: a pointer to the Object thas was held for the current thread orNULLif no Object was held.template<typename T> T * log4shib::threading::ThreadLocalDataHolder< T >::release () [inline]template<typename T> void log4shib::threading::ThreadLocalDataHolder< T >::reset (T * p = NULL) [inline]template<typename T> void log4shib::threading::ThreadLocalDataHolder< T >::reset (T * p = NULL) [inline]template<typename T> void log4shib::threading::ThreadLocalDataHolder< T >::reset (T * p = NULL) [inline]β sets a new Object to be held for the current thread. A previously set Object will be deleted. Parameters:pthe new object to hold. Postcondition:get() == ptemplate<typename T> void log4shib::threading::ThreadLocalDataHolder< T >::reset (T * p = NULL) [inline]β sets a new Object to be held for the current thread. A previously set Object will be deleted. Parameters:pthe new object to hold. Postcondition:get() == ptemplate<typename T> void log4shib::threading::ThreadLocalDataHolder< T >::reset (T * p = NULL) [inline]
π Author π
Generated automatically by Doxygen for log4shib from the source code. Yes, the author is a robot. Slay, I guess. π€π
and that's the whole page, bestie. log4shib, Version 2.0.1 (the footer doesn't list a date, just so you know) β log4shib::...Holder< T >(3), generated automatically by Doxygen for log4shib from the source code. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· 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