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

Function OSWakeupThread

src/dolphin/src/os/OSThread.c:493–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void OSWakeupThread(OSThreadQueue* queue)
494{
495 BOOL enabled;
496 OSThread* thread;
497
498 enabled = OSDisableInterrupts();
499 while (queue->head)
500 {
501 RemoveHead(queue, thread, link);
502 thread->state = OS_THREAD_STATE_READY;
503 if (!(0 < thread->suspend))
504 {
505 SetRun(thread);
506 }
507 }
508 __OSReschedule();
509 OSRestoreInterrupts(enabled);
510}
511
512void OSClearStack(u8 val)
513{

Callers 13

__AXDSPDoneCallbackFunction · 0.85
OSCancelThreadFunction · 0.85
OSSendMessageFunction · 0.85
OSReceiveMessageFunction · 0.85
OSJamMessageFunction · 0.85
__OSUnlockAllMutexFunction · 0.85
GXFinishInterruptHandlerFunction · 0.85
cbForReadSyncFunction · 0.85
cbForCancelSyncFunction · 0.85
cbForCancelAllSyncFunction · 0.85
unlockFunction · 0.85
__CARDSyncCallbackFunction · 0.85

Calls 3

OSDisableInterruptsFunction · 0.85
SetRunFunction · 0.85
__OSRescheduleFunction · 0.85

Tested by

no test coverage detected