Lines Matching defs:TSDRegistrySharedT
26 struct TSDRegistrySharedT { struct
27 void initLinkerInitialized(Allocator *Instance) { in initLinkerInitialized()
36 void init(Allocator *Instance) { in init()
41 void unmapTestOnly() { setCurrentTSD(nullptr); } in unmapTestOnly()
43 ALWAYS_INLINE void initThreadMaybe(Allocator *Instance, in initThreadMaybe()
50 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) { in getTSDAndLock()
67 void disable() { in disable()
73 void enable() { in enable()
79 bool setOption(Option O, sptr Value) { in setOption()
88 bool getDisableMemInit() const { return *getTlsPtr() & 1; } in getDisableMemInit()
91 ALWAYS_INLINE uptr *getTlsPtr() const { in getTlsPtr()
102 ALWAYS_INLINE void setCurrentTSD(TSD<Allocator> *CurrentTSD) { in setCurrentTSD()
107 ALWAYS_INLINE TSD<Allocator> *getCurrentTSD() { in getCurrentTSD()
111 bool setNumberOfTSDs(u32 N) { in setNumberOfTSDs()
137 void setDisableMemInit(bool B) { in setDisableMemInit()
142 void initOnceMaybe(Allocator *Instance) { in initOnceMaybe()
149 NOINLINE void initThread(Allocator *Instance) { in initThread()
157 NOINLINE TSD<Allocator> *getTSDAndLockSlow(TSD<Allocator> *CurrentTSD) { in getTSDAndLockSlow()
200 atomic_u32 CurrentIndex;
201 u32 NumberOfTSDs;
202 u32 NumberOfCoPrimes;
203 u32 CoPrimes[TSDsArraySize];
204 bool Initialized;
205 HybridMutex Mutex;
206 HybridMutex MutexTSDs;
207 TSD<Allocator> TSDs[TSDsArraySize];