log4shib 2.0.1
|
This class holds Thread local data of type T, i.e. More...
#include <BoostThreads.hh>
Public Types | |
typedef T | data_type |
typedef T | data_type |
typedef T | data_type |
Public Member Functions | |
T * | get () const |
T * | operator-> () const |
T & | operator* () const |
T * | release () |
void | reset (T *p=NULL) |
ThreadLocalDataHolder () | |
~ThreadLocalDataHolder () | |
T * | get () const |
T * | operator-> () const |
T & | operator* () const |
T * | 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 () const |
T * | operator-> () const |
T & | operator* () const |
T * | release () |
void | reset (T *p=NULL) |
Static Public Member Functions | |
static void | freeHolder (void *p) |
This class holds Thread local data of type T, i.e.
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.
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.
typedef T log4shib::threading::ThreadLocalDataHolder< T >::data_type |
typedef T log4shib::threading::ThreadLocalDataHolder< T >::data_type |
typedef T log4shib::threading::ThreadLocalDataHolder< T >::data_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Obtains the Object held for the current thread.
|
inline |
Obtains the Object held for the current thread.
|
inline |
|
inline |
|
inline |
|
inline |
Obtains the Object held for the current thread.
|
inline |
Obtains the Object held for the current thread.
|
inline |
|
inline |
|
inline |
|
inline |
Obtains the Object held for the current thread.
Initially each thread holds NULL.
|
inline |
Obtains the Object held for the current thread.
Initially each thread holds NULL.
|
inline |
|
inline |
|
inline |
|
inline |
Releases the Object held for the current thread.
|
inline |
Releases the Object held for the current thread.
|
inline |
|
inline |
|
inline |
|
inline |
Sets a new Object to be held for the current thread.
A previously set Object will be deleted.
p | the new object to hold. |
|
inline |
Sets a new Object to be held for the current thread.
A previously set Object will be deleted.
p | the new object to hold. |
|
inline |