18 #ifndef _DECAF_LANG_THREADLOCAL_H_
19 #define _DECAF_LANG_THREADLOCAL_H_
88 void set(
const E& value) {
128 delete static_cast<E*
>(value);
void * getRawValue() const
Returns the current threads assigned value, but retains ownership to this value unless the remove met...
virtual ~ThreadLocal()
Definition: ThreadLocal.h:56
This class provides thread-local variables.
Definition: ThreadLocal.h:43
void removeAll()
Removes from all threads any allocated data stored for this ThreadLocal instance. ...
#define NULL
Definition: Config.h:33
Definition: ThreadLocalImpl.h:28
void set(const E &value)
Sets the current thread's copy of this thread-local variable to the specified value.
Definition: ThreadLocal.h:88
ThreadLocal()
Creates a new instance of a ThreadLocal.
Definition: ThreadLocal.h:54
void setRawValue(void *value)
Sets the raw void* value for the current thread.
virtual E initialValue() const
Returns the current thread's "initial value" for this thread-local variable.
Definition: ThreadLocal.h:120
virtual void doDelete(void *value)
Called to destroy the value held by the current thread or by the library on shutdown if there are sti...
Definition: ThreadLocal.h:126