Apache Log4cxx  Version 1.3.0
Loading...
Searching...
No Matches
log4cxx::helpers::ThreadLocal Class Reference

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.
 

Detailed Description

This class provides thread-local variables.

This class is similar in function to java.lang.ThreadLocal.

Constructor & Destructor Documentation

◆ ThreadLocal()

log4cxx::helpers::ThreadLocal::ThreadLocal ( )

Create new instance.

◆ ~ThreadLocal()

log4cxx::helpers::ThreadLocal::~ThreadLocal ( )

Destructor.

Member Function Documentation

◆ get()

void * log4cxx::helpers::ThreadLocal::get ( )

Returns the value in the current thread's copy of this thread-local variable.

Returns
value of thread-local variable for the current thread.

◆ set()

void log4cxx::helpers::ThreadLocal::set ( void *  priv)

Sets the value in the current thread's copy of this thread-local variable.

Parameters
privnew value.

The documentation for this class was generated from the following file: