18#ifndef _DECAF_LANG_THREADLOCAL_H_
19#define _DECAF_LANG_THREADLOCAL_H_
47 ThreadLocal& operator= (
const ThreadLocal&);
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...
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
Definition ThreadingTypes.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25