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

Member Variables

Method Overview

Inherited from ThreadLocalImpl:

Methods

ThreadLocal<T>()

Declared at: llvm/include/llvm/Support/ThreadLocal.h:47

void erase()

Declared at: llvm/include/llvm/Support/ThreadLocal.h:57

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)

Declared at: llvm/include/llvm/Support/ThreadLocal.h:54

Parameters

T* d