LLVM
8.0.1
|
ThreadLocal - A class used to abstract thread-local storage. More...
#include "llvm/Support/ThreadLocal.h"
Public Member Functions | |
ThreadLocal () | |
T * | get () |
get - Fetches a pointer to the object associated with the current thread. More... | |
void | set (T *d) |
void | erase () |
Public Member Functions inherited from llvm::sys::ThreadLocalImpl | |
ThreadLocalImpl () | |
virtual | ~ThreadLocalImpl () |
void | setInstance (const void *d) |
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().
Referenced by llvm::CrashRecoveryContext::unregisterCleanup().
|
inline |
Definition at line 55 of file ThreadLocal.h.
References llvm::sys::ThreadLocalImpl::setInstance().
Referenced by llvm::CrashRecoveryContext::unregisterCleanup().