MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / __OSGetEffectivePriority

Function __OSGetEffectivePriority

src/dolphin/src/os/OSThread.c:200–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198#pragma dont_inline reset
199
200OSPriority __OSGetEffectivePriority(OSThread* thread)
201{
202 OSPriority priority;
203 OSMutex* mutex;
204 OSThread* blocked;
205
206 priority = thread->base;
207 for (mutex = thread->queueMutex.head; mutex; mutex = mutex->link.next)
208 {
209 blocked = mutex->queue.head;
210 if (blocked && blocked->priority < priority)
211 {
212 priority = blocked->priority;
213 }
214 }
215 return priority;
216}
217
218static OSThread* SetEffectivePriority(OSThread* thread, OSPriority priority)
219{

Callers 2

UpdatePriorityFunction · 0.85
OSResumeThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected