LLVM API Documentation
#include <ThreadLocal.h>
Public Member Functions | |
ThreadLocal () | |
T * | get () |
void | set (T *d) |
void | erase () |
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.
llvm::sys::ThreadLocal< T >::ThreadLocal | ( | ) | [inline] |
Definition at line 48 of file ThreadLocal.h.
void llvm::sys::ThreadLocal< T >::erase | ( | ) | [inline] |
Definition at line 58 of file ThreadLocal.h.
References llvm::sys::ThreadLocalImpl::removeInstance().
T* llvm::sys::ThreadLocal< T >::get | ( | ) | [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().
void llvm::sys::ThreadLocal< T >::set | ( | T * | d | ) | [inline] |
Definition at line 55 of file ThreadLocal.h.
References llvm::sys::ThreadLocalImpl::setInstance().