MLIR
20.0.0git
|
This class provides support for defining a thread local object with non static storage duration. More...
#include "mlir/Support/ThreadLocalCache.h"
Public Member Functions | |
ThreadLocalCache ()=default | |
~ThreadLocalCache () | |
ValueT & | get () |
Return an instance of the value type for the current thread. More... | |
ValueT & | operator* () |
ValueT * | operator-> () |
This class provides support for defining a thread local object with non static storage duration.
This is very useful for situations in which a data cache has very large lock contention.
Definition at line 27 of file ThreadLocalCache.h.
|
default |
|
inline |
Definition at line 141 of file ThreadLocalCache.h.
|
inline |
Return an instance of the value type for the current thread.
Definition at line 147 of file ThreadLocalCache.h.
Referenced by mlir::detail::DistinctAttributeAllocator::allocate(), mlir::ThreadLocalCache< ValueT >::operator*(), and mlir::ThreadLocalCache< ValueT >::operator->().
|
inline |
Definition at line 168 of file ThreadLocalCache.h.
References mlir::ThreadLocalCache< ValueT >::get().
|
inline |
Definition at line 169 of file ThreadLocalCache.h.
References mlir::ThreadLocalCache< ValueT >::get().