mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-12 09:09:47 +12:00
Derp
This commit is contained in:
parent
1cf8af98c2
commit
0eeff3535f
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ void Kernel::switchToNextThread() {
|
||||||
void Kernel::rescheduleThreads() {
|
void Kernel::rescheduleThreads() {
|
||||||
std::optional<int> newThreadIndex = getNextThread();
|
std::optional<int> newThreadIndex = getNextThread();
|
||||||
|
|
||||||
if (newThreadIndex.has_value()) {
|
if (newThreadIndex.has_value() && newThreadIndex.value() != currentThreadIndex) {
|
||||||
threads[currentThreadIndex].status = ThreadStatus::Ready;
|
threads[currentThreadIndex].status = ThreadStatus::Ready;
|
||||||
switchThread(newThreadIndex.value());
|
switchThread(newThreadIndex.value());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue