[Kernel] Spam some more RescheduleThreads calls
This commit is contained in:
@@ -190,6 +190,8 @@ void Kernel::releaseMutex(Mutex* moo) {
|
|||||||
moo->lockCount = 1;
|
moo->lockCount = 1;
|
||||||
moo->ownerThread = index;
|
moo->ownerThread = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rescheduleThreads();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,6 +328,7 @@ void Kernel::createThread() {
|
|||||||
|
|
||||||
regs[0] = SVCResult::Success;
|
regs[0] = SVCResult::Success;
|
||||||
regs[1] = makeThread(entrypoint, initialSP, priority, id, arg, ThreadStatus::Ready);
|
regs[1] = makeThread(entrypoint, initialSP, priority, id, arg, ThreadStatus::Ready);
|
||||||
|
rescheduleThreads();
|
||||||
}
|
}
|
||||||
|
|
||||||
// void SleepThread(s64 nanoseconds)
|
// void SleepThread(s64 nanoseconds)
|
||||||
|
|||||||
Reference in New Issue
Block a user