class ThreadLocal
Declaration
template <class T>
class ThreadLocal : public ThreadLocalImpl { /* full declaration omitted */ };
Description
ThreadLocal - A class used to abstract thread-local storage. It holds, for each thread, a pointer a single object of type T.
Declared at: llvm/include/llvm/Support/ThreadLocal.h:45
Inherits from: ThreadLocalImpl
Templates
- T
Method Overview
- public ThreadLocal<T>()
- public void erase()
- public T * get()
- public void set(T * d)
Inherited from ThreadLocalImpl:
Methods
¶ThreadLocal<T>()
ThreadLocal<T>()
Declared at: llvm/include/llvm/Support/ThreadLocal.h:47
¶void erase()
void erase()
Declared at: llvm/include/llvm/Support/ThreadLocal.h:57
¶T* get()
T* get()
Description
get - Fetches a pointer to the object associated with the current thread. If no object has yet been associated, it returns NULL;
Declared at: llvm/include/llvm/Support/ThreadLocal.h:51
¶void set(T* d)
void set(T* d)
Declared at: llvm/include/llvm/Support/ThreadLocal.h:54
Parameters
- T* d