mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 07:35:41 +12:00
[Kernel] Make SleepThread actually sleep.
This commit is contained in:
parent
64f397f865
commit
e1ce698600
1 changed files with 2 additions and 0 deletions
|
@ -156,6 +156,8 @@ void Kernel::sleepThread(s64 ns) {
|
||||||
t.status = ThreadStatus::WaitSleep;
|
t.status = ThreadStatus::WaitSleep;
|
||||||
t.waitingNanoseconds = ns;
|
t.waitingNanoseconds = ns;
|
||||||
t.sleepTick = cpu.getTicks();
|
t.sleepTick = cpu.getTicks();
|
||||||
|
|
||||||
|
switchToNextThread();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue