Apache Log4cxx
Version 1.3.0
|
This class provides thread-local variables. More...
#include <threadlocal.h>
Public Member Functions | |
ThreadLocal () | |
Create new instance. | |
~ThreadLocal () | |
Destructor. | |
void | set (void *priv) |
Sets the value in the current thread's copy of this thread-local variable. | |
void * | get () |
Returns the value in the current thread's copy of this thread-local variable. | |
This class provides thread-local variables.
This class is similar in function to java.lang.ThreadLocal.
log4cxx::helpers::ThreadLocal::ThreadLocal | ( | ) |
Create new instance.
log4cxx::helpers::ThreadLocal::~ThreadLocal | ( | ) |
Destructor.
void * log4cxx::helpers::ThreadLocal::get | ( | ) |
Returns the value in the current thread's copy of this thread-local variable.
void log4cxx::helpers::ThreadLocal::set | ( | void * | priv | ) |
Sets the value in the current thread's copy of this thread-local variable.
priv | new value. |