18#ifndef _DECAF_LANG_THREADLOCAL_H_
19#define _DECAF_LANG_THREADLOCAL_H_
88 void set(
const E& value) {
128 delete static_cast<E*
>(value);
Definition: ThreadLocalImpl.h:28
void removeAll()
Removes from all threads any allocated data stored for this ThreadLocal instance.
void setRawValue(void *value)
Sets the raw void* value for the current thread.
void * getRawValue() const
Returns the current threads assigned value, but retains ownership to this value unless the remove met...
This class provides thread-local variables.
Definition: ThreadLocal.h:43
ThreadLocal()
Creates a new instance of a ThreadLocal.
Definition: ThreadLocal.h:54
void remove()
Removes the current thread's value for this thread-local variable.
Definition: ThreadLocal.h:99
E & get()
Returns the value in the current thread's copy of this thread-local variable.
Definition: ThreadLocal.h:69
void set(const E &value)
Sets the current thread's copy of this thread-local variable to the specified value.
Definition: ThreadLocal.h:88
virtual ~ThreadLocal()
Definition: ThreadLocal.h:56
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
#define NULL
Definition: Config.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: AprPool.h:25