#include <BoostThreads.hh>
Collaboration diagram for log4cpp::threading::ThreadLocalDataHolder< T >:

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 | |
| 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.
|
|
||||||||||
|
|
|
||||||||||
|
|
1.3.9.1