47 enum OSThreadAttributes
56 #define OS_CONTEXT_TAG 0x4F53436F6E747874ull
97 CHECK_OFFSET(
OSContext, 0x1b8, spinLockCount);
101 CHECK_OFFSET(
OSContext, 0x2e0, coretime);
102 CHECK_OFFSET(
OSContext, 0x2f8, starttime);
133 #define OS_THREAD_TAG 0x74487244u
146 UNKNOWN(0x35C - 0x338);
156 UNKNOWN(0x57c - 0x3a0);
158 UNKNOWN(0x5c0 - 0x5bc);
169 UNKNOWN(0x69c - 0x5f4);
172 CHECK_OFFSET(
OSThread, 0x324, state);
173 CHECK_OFFSET(
OSThread, 0x325, attr);
175 CHECK_OFFSET(
OSThread, 0x328, suspendCounter);
176 CHECK_OFFSET(
OSThread, 0x32c, priority);
177 CHECK_OFFSET(
OSThread, 0x330, basePriority);
178 CHECK_OFFSET(
OSThread, 0x334, exitValue);
179 CHECK_OFFSET(
OSThread, 0x35c, queue);
180 CHECK_OFFSET(
OSThread, 0x360, link);
181 CHECK_OFFSET(
OSThread, 0x368, joinQueue);
182 CHECK_OFFSET(
OSThread, 0x378, mutex);
183 CHECK_OFFSET(
OSThread, 0x37c, mutexQueue);
184 CHECK_OFFSET(
OSThread, 0x38c, activeLink);
185 CHECK_OFFSET(
OSThread, 0x394, stackStart);
186 CHECK_OFFSET(
OSThread, 0x398, stackEnd);
187 CHECK_OFFSET(
OSThread, 0x39c, entryPoint);
188 CHECK_OFFSET(
OSThread, 0x57c, specific);
189 CHECK_OFFSET(
OSThread, 0x5c0, name);
190 CHECK_OFFSET(
OSThread, 0x5c8, userStackPointer);
191 CHECK_OFFSET(
OSThread, 0x5cc, cleanupCallback);
192 CHECK_OFFSET(
OSThread, 0x5d0, deallocator);
193 CHECK_OFFSET(
OSThread, 0x5d4, cancelState);
194 CHECK_OFFSET(
OSThread, 0x5d8, requestFlag);
195 CHECK_OFFSET(
OSThread, 0x5dc, needSuspend);
196 CHECK_OFFSET(
OSThread, 0x5e0, suspendResult);
197 CHECK_OFFSET(
OSThread, 0x5e4, suspendQueue);
223 OSThreadAttributes attributes);
OSThreadCleanupCallbackFn cleanupCallback
OSThreadDeallocatorFn deallocator
void OSSetThreadSpecific(uint32_t id, uint32_t value)
BOOL OSCreateThread(OSThread *thread, OSThreadEntryPointFn entry, int32_t argc, char *argv, void *stack, uint32_t stackSize, int32_t priority, OSThreadAttributes attributes)
int32_t OSCheckThreadStackUsage(OSThread *thread)
OSThread * OSGetDefaultThread(uint32_t coreID)
OSThread * OSGetCurrentThread()
int32_t OSGetThreadPriority(OSThread *thread)
void OSCancelThread(OSThread *thread)
void OSSleepTicks(OSTime ticks)
void(* OSThreadDeallocatorFn)(OSThread *thread, void *stack)
BOOL OSIsThreadSuspended(OSThread *thread)
const char * OSGetThreadName(OSThread *thread)
BOOL OSSetThreadRunQuantum(OSThread *thread, uint32_t quantum)
uint32_t OSSuspendThread(OSThread *thread)
void OSDetachThread(OSThread *thread)
BOOL OSSetThreadCancelState(BOOL state)
int(* OSThreadEntryPointFn)(int argc, const char **argv)
BOOL OSSetThreadPriority(OSThread *thread, int32_t priority)
int32_t OSResumeThread(OSThread *thread)
uint32_t OSGetStackPointer()
void OSGetActiveThreadLink(OSThread *thread, OSThreadLink *link)
int32_t OSCheckActiveThreads()
void OSPrintCurrentThreadState()
BOOL OSSetThreadAffinity(OSThread *thread, uint32_t affinity)
BOOL OSJoinThread(OSThread *thread, int *threadResult)
void OSWakeupThread(OSThreadQueue *queue)
void OSContinueThread(OSThread *thread)
OSThreadRequest requestFlag
void OSSetThreadName(OSThread *thread, const char *name)
OSThreadEntryPointFn entryPoint
OSThreadQueue suspendQueue
BOOL OSSetThreadStackUsage(OSThread *thread)
uint32_t OSGetThreadAffinity(OSThread *thread)
void OSSleepThread(OSThreadQueue *queue)
BOOL OSRunThread(OSThread *thread, OSThreadEntryPointFn entry, int argc, const char **argv)
void OSTestThreadCancel()
void OSExitThread(int32_t result)
OSThreadDeallocatorFn OSSetThreadDeallocator(OSThread *thread, OSThreadDeallocatorFn deallocator)
OSThreadCleanupCallbackFn OSSetThreadCleanupCallback(OSThread *thread, OSThreadCleanupCallbackFn callback)
void(* OSThreadCleanupCallbackFn)(OSThread *thread, void *stack)
BOOL OSIsThreadTerminated(OSThread *thread)
uint32_t OSGetThreadSpecific(uint32_t id)
void OSClearThreadStackUsage(OSThread *thread)