Lines Matching defs:TSDRegistrySharedT
26 struct TSDRegistrySharedT { struct
27 void initLinkerInitialized(Allocator *Instance) { in initLinkerInitialized()
36 void init(Allocator *Instance) { in init()
41 void initOnceMaybe(Allocator *Instance) { in initOnceMaybe()
48 void unmapTestOnly() { setCurrentTSD(nullptr); } in unmapTestOnly()
50 ALWAYS_INLINE void initThreadMaybe(Allocator *Instance, in initThreadMaybe()
57 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) { in getTSDAndLock()
74 void disable() { in disable()
80 void enable() { in enable()
86 bool setOption(Option O, sptr Value) { in setOption()
95 bool getDisableMemInit() const { return *getTlsPtr() & 1; } in getDisableMemInit()
98 ALWAYS_INLINE uptr *getTlsPtr() const { in getTlsPtr()
109 ALWAYS_INLINE void setCurrentTSD(TSD<Allocator> *CurrentTSD) { in setCurrentTSD()
114 ALWAYS_INLINE TSD<Allocator> *getCurrentTSD() { in getCurrentTSD()
118 bool setNumberOfTSDs(u32 N) { in setNumberOfTSDs()
144 void setDisableMemInit(bool B) { in setDisableMemInit()
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 = 0;
202 u32 NumberOfCoPrimes = 0;
203 u32 CoPrimes[TSDsArraySize] = {};
204 bool Initialized = false;
205 HybridMutex Mutex;
206 HybridMutex MutexTSDs;
207 TSD<Allocator> TSDs[TSDsArraySize];