Apache log4cxx
Version 0.12.1
|
This class provides thread-local variables. More...
#include <threadlocal.h>
Public Member Functions | |
ThreadLocal () | |
Create new instance. More... | |
~ThreadLocal () | |
Destructor. More... | |
void | set (void *priv) |
Sets the value in the current thread's copy of this thread-local variable. More... | |
void * | get () |
Returns the value in the current thread's copy of this thread-local variable. More... | |
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. |