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