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

Function UpdatePriority

libs/dolphin/os/OSThread.c:219–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219static void UpdatePriority(OSThread* thread) {
220 OSPriority priority;
221
222 do {
223 if (0 < thread->suspend) {
224 break;
225 }
226 priority = __OSGetEffectivePriority(thread);
227 if (thread->priority == priority) {
228 break;
229 }
230 thread = SetEffectivePriority(thread, priority);
231 } while (thread);
232}
233
234void __OSPromoteThread(OSThread *thread, OSPriority priority)
235{

Callers 3

OSCancelThreadFunction · 0.85
OSResumeThreadFunction · 0.85
OSSuspendThreadFunction · 0.85

Calls 2

__OSGetEffectivePriorityFunction · 0.85
SetEffectivePriorityFunction · 0.85

Tested by

no test coverage detected