LLVM
15.0.0git
|
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 () |
![]() | |
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 45 of file ThreadLocal.h.
|
inline |
Definition at line 47 of file ThreadLocal.h.
|
inline |
Definition at line 57 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 51 of file ThreadLocal.h.
References llvm::sys::ThreadLocalImpl::getInstance(), and T.
|
inline |
Definition at line 54 of file ThreadLocal.h.
References d, and llvm::sys::ThreadLocalImpl::setInstance().