Classes | |
struct | ThreadIdAndValue |
Public Member Functions | |
void | ForEach (std::function< void(std::thread::id, T &)> f) |
T & | local () |
ThreadLocal (int capacity) | |
ThreadLocal (int capacity, Initialize initialize) | |
ThreadLocal (int capacity, Initialize initialize, Release release) | |
~ThreadLocal () | |
Private Member Functions | |
T & | SpilledLocal (std::thread::id this_thread) |
Private Attributes | |
const int | capacity_ |
MaxSizeVector< ThreadIdAndValue > | data_ |
std::atomic< int > | filled_records_ |
Initialize | initialize_ |
EIGEN_MUTEX | mu_ |
std::unordered_map< std::thread::id, T > | per_thread_map_ |
MaxSizeVector< std::atomic< ThreadIdAndValue * > > | ptr_ |
Release | release_ |
Definition at line 113 of file ThreadLocal.h.
|
inlineexplicit |
Definition at line 119 of file ThreadLocal.h.
|
inline |
Definition at line 123 of file ThreadLocal.h.
|
inline |
Definition at line 127 of file ThreadLocal.h.
|
inline |
Definition at line 235 of file ThreadLocal.h.
|
inline |
Definition at line 215 of file ThreadLocal.h.
|
inline |
Definition at line 141 of file ThreadLocal.h.
|
inlineprivate |
Definition at line 261 of file ThreadLocal.h.
|
private |
Definition at line 277 of file ThreadLocal.h.
|
private |
Definition at line 281 of file ThreadLocal.h.
|
private |
Definition at line 288 of file ThreadLocal.h.
|
private |
Definition at line 275 of file ThreadLocal.h.
|
private |
Definition at line 293 of file ThreadLocal.h.
|
private |
Definition at line 294 of file ThreadLocal.h.
|
private |
Definition at line 285 of file ThreadLocal.h.
|
private |
Definition at line 276 of file ThreadLocal.h.