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

Function UpdatePriority

src/dolphin/src/os/OSThread.c:244–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244inline void UpdatePriority(OSThread* thread)
245{
246 OSPriority priority;
247
248 do
249 {
250 if (0 < thread->suspend)
251 {
252 break;
253 }
254 priority = __OSGetEffectivePriority(thread);
255 if (thread->priority == priority)
256 {
257 break;
258 }
259 thread = SetEffectivePriority(thread, priority);
260 } while (thread);
261}
262
263static OSThread* SelectThread(BOOL yield)
264{

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