|
Apache log4cxx Version 0.10.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.
| 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. |