#include <DummyThreads.hh>
Collaboration diagram for log4cpp::threading::ThreadLocalDataHolder:
Public Types | |
typedef T | data_type |
typedef T | data_type |
typedef T | data_type |
Public Methods | |
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. More... | |
T * | operator-> () const |
Obtains the Object held for the current thread. More... | |
T & | operator * () const |
Obtains the Object held for the current thread. More... | |
T * | release () |
Releases the Object held for the current thread. More... | |
void | reset (T *p=NULL) |
Sets a new Object to be held for the current thread. More... | |
ThreadLocalDataHolder () | |
~ThreadLocalDataHolder () | |
T * | get () const |
Obtains the Object held for the current thread. More... | |
T * | operator-> () const |
Obtains the Object held for the current thread. More... | |
T & | operator * () const |
Obtains the Object held for the current thread. More... | |
T * | release () |
Releases the Object held for the current thread. More... | |
void | reset (T *p=NULL) |
Sets a new Object to be held for the current thread. More... | |
ThreadLocalDataHolder () | |
~ThreadLocalDataHolder () | |
T * | get () const |
T * | operator-> () const |
T & | operator * () const |
T * | release () |
void | reset (T *p=NULL) |
Static Public Methods | |
void | freeHolder (void *p) |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Obtains the Object held for the current thread.
|
|
Obtains the Object held for the current thread.
|
|
|
|
|
|
Obtains the Object held for the current thread.
|
|
Obtains the Object held for the current thread.
|
|
|
|
|
|
Obtains the Object held for the current thread. Initially each thread holds NULL.
|
|
Obtains the Object held for the current thread. Initially each thread holds NULL.
|
|
|
|
|
|
Releases the Object held for the current thread.
|
|
Releases the Object held for the current thread.
|
|
|
|
|
|
Sets a new Object to be held for the current thread. A previously set Object will be deleted.
|
|
Sets a new Object to be held for the current thread. A previously set Object will be deleted.
|
|
|