MCPcopy Create free account
hub / github.com/doldecomp/mkdd / __OSSwitchThread

Function __OSSwitchThread

libs/dolphin/os/OSThread.c:132–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130OSThread* OSGetCurrentThread() { return __OSCurrentThread; }
131
132static void __OSSwitchThread(OSThread *nextThread)
133{
134 OSSetCurrentThread(nextThread);
135 OSSetCurrentContext(&nextThread->context);
136 OSLoadContext(&nextThread->context);
137}
138
139BOOL OSIsThreadTerminated(OSThread *thread)
140{

Callers 1

SelectThreadFunction · 0.85

Calls 2

OSSetCurrentThreadFunction · 0.85
OSLoadContextFunction · 0.85

Tested by

no test coverage detected