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

Function OSSleepThread

libs/dolphin/os/OSThread.c:547–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void OSSleepThread(OSThreadQueue* queue) {
548 BOOL enabled;
549 OSThread* currentThread;
550
551 enabled = OSDisableInterrupts();
552 currentThread = OSGetCurrentThread();
553
554 currentThread->state = OS_THREAD_STATE_WAITING;
555 currentThread->queue = queue;
556 AddPrio(queue, currentThread, link);
557 RunQueueHint = TRUE;
558 __OSReschedule();
559 OSRestoreInterrupts(enabled);
560}
561
562void OSWakeupThread(OSThreadQueue* queue) {
563 BOOL enabled;

Callers 15

OSSendMessageFunction · 0.85
OSReceiveMessageFunction · 0.85
OSJamMessageFunction · 0.85
OSLockMutexFunction · 0.85
OSWaitCondFunction · 0.85
DVDReadPrioFunction · 0.85
DVDSeekPrioFunction · 0.85
DVDPrepareStreamFunction · 0.85
DVDCancelStreamFunction · 0.85
DVDCancelFunction · 0.85
DVDCancelAllFunction · 0.85
waitexilockFunction · 0.85

Calls 3

OSDisableInterruptsFunction · 0.85
OSGetCurrentThreadFunction · 0.85
__OSRescheduleFunction · 0.85

Tested by

no test coverage detected