18 #ifndef _DECAF_LANG_THREADLOCAL_H_ 19 #define _DECAF_LANG_THREADLOCAL_H_ 88 void set(
const E& value) {
128 delete static_cast<E*
>(value);
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
virtual E initialValue() const
Returns the current thread's "initial value" for this thread-local variable.
Definition: ThreadLocal.h:120
ThreadLocal()
Creates a new instance of a ThreadLocal.
Definition: ThreadLocal.h:54
void * getRawValue() const
Returns the current threads assigned value, but retains ownership to this value unless the remove met...
void setRawValue(void *value)
Sets the raw void* value for the current thread.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25
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