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

Function OSSleepThread

src/dolphin/src/os/OSThread.c:477–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void OSSleepThread(OSThreadQueue* queue)
478{
479 BOOL enabled;
480 OSThread* currentThread;
481
482 enabled = OSDisableInterrupts();
483 currentThread = OSGetCurrentThread();
484
485 currentThread->state = OS_THREAD_STATE_WAITING;
486 currentThread->queue = queue;
487 AddPrio(queue, currentThread, link);
488 RunQueueHint = TRUE;
489 __OSReschedule();
490 OSRestoreInterrupts(enabled);
491}
492
493void OSWakeupThread(OSThreadQueue* queue)
494{

Callers 11

__AXOutQuitFunction · 0.85
OSSendMessageFunction · 0.85
OSReceiveMessageFunction · 0.85
OSJamMessageFunction · 0.85
GXWaitDrawDoneFunction · 0.85
DVDReadPrioFunction · 0.85
DVDCancelFunction · 0.85
DVDCancelAllFunction · 0.85
waitexilockFunction · 0.85
__CARDSyncFunction · 0.85
VIWaitForRetraceFunction · 0.85

Calls 3

OSDisableInterruptsFunction · 0.85
OSGetCurrentThreadFunction · 0.85
__OSRescheduleFunction · 0.85

Tested by

no test coverage detected