mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-16 02:49:48 +12:00
[Kernel] Fix yet another threading oopsie (BOOTS OCARINA OF TIME!!!!!)
This commit is contained in:
parent
e1ce698600
commit
8cf55162d0
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ void Kernel::sleepThread(s64 ns) {
|
||||||
if (ns < 0) {
|
if (ns < 0) {
|
||||||
Helpers::panic("Sleeping a thread for a negative amount of ns");
|
Helpers::panic("Sleeping a thread for a negative amount of ns");
|
||||||
} else if (ns == 0) { // Used when we want to force a thread switch
|
} else if (ns == 0) { // Used when we want to force a thread switch
|
||||||
|
threads[currentThreadIndex].status = ThreadStatus::Ready;
|
||||||
switchToNextThread();
|
switchToNextThread();
|
||||||
} else { // If we're sleeping for > 0 ns
|
} else { // If we're sleeping for > 0 ns
|
||||||
Thread& t = threads[currentThreadIndex];
|
Thread& t = threads[currentThreadIndex];
|
||||||
|
|
Loading…
Add table
Reference in a new issue