|
MLIR 24.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 () | |
| void | clear () |
| Invalidate and clear all thread-local cache entries for this instance. | |
| ValueT & | get () |
| Return an instance of the value type for the current thread. | |
| 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 138 of file ThreadLocalCache.h.
|
inline |
Invalidate and clear all thread-local cache entries for this instance.
Definition at line 144 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 operator*(), and operator->().
|
inline |
Definition at line 174 of file ThreadLocalCache.h.
References get().
|
inline |
Definition at line 175 of file ThreadLocalCache.h.
References get().