LLVM API Documentation
#include <ThreadLocal.h>
Public Member Functions | |
ThreadLocal () | |
T * | get () |
void | set (T *d) |
void | erase () |
![]() | |
ThreadLocalImpl () | |
virtual | ~ThreadLocalImpl () |
void | setInstance (const void *d) |
const void * | getInstance () |
void | removeInstance () |
ThreadLocal - A class used to abstract thread-local storage. It holds, for each thread, a pointer a single object of type T.
Definition at line 46 of file ThreadLocal.h.
|
inline |
Definition at line 48 of file ThreadLocal.h.
|
inline |
Definition at line 58 of file ThreadLocal.h.
References llvm::sys::ThreadLocalImpl::removeInstance().
|
inline |
get - Fetches a pointer to the object associated with the current thread. If no object has yet been associated, it returns NULL;
Definition at line 52 of file ThreadLocal.h.
References llvm::sys::ThreadLocalImpl::getInstance().
|
inline |
Definition at line 55 of file ThreadLocal.h.
References llvm::sys::ThreadLocalImpl::setInstance().