Lines Matching refs:GetThreadLocalData
46 static ThreadLocalData* GetThreadLocalData();
48 static void SetMutator(Mutator* newMutator) { GetThreadLocalData()->mutator = newMutator; } in SetMutator()
50 static Mutator* GetMutator() { return GetThreadLocalData()->mutator; } in GetMutator()
52 static AllocationBuffer* GetAllocBuffer() { return GetThreadLocalData()->buffer; } in GetAllocBuffer()
55 static void SetAllocBuffer(AllocationBuffer* buffer) { GetThreadLocalData()->buffer = buffer; } in SetAllocBuffer()
57 static uint8_t* GetPreemptFlag() { return GetThreadLocalData()->preemptFlag; } in GetPreemptFlag()
59 static void SetProtectAddr(uint8_t* addr) { GetThreadLocalData()->protectAddr = addr; } in SetProtectAddr()
61 static void SetThreadType(ThreadType type) { GetThreadLocalData()->threadType = type; } in SetThreadType()
63 static ThreadType GetThreadType() { return GetThreadLocalData()->threadType; } in GetThreadType()
65 static void SetProcessorFlag(bool flag) { GetThreadLocalData()->isArkProcessor = flag; } in SetProcessorFlag()
67 static bool IsArkProcessor() { return GetThreadLocalData()->isArkProcessor; } in IsArkProcessor()
71 GetThreadLocalData()->foreignThread = thread; in SetForeignThread()
76 return GetThreadLocalData()->foreignThread; in GetForeignThread()
81 GetThreadLocalData()->thread = reinterpret_cast<uint8_t*>(thread); in SetArkThread()
86 GetThreadLocalData()->schedule = reinterpret_cast<uint8_t*>(schedule); in SetSchedule()