mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 18:32:49 -06:00
Kernel: Remove a few global instances from the kernel.
This commit is contained in:
parent
e4a1ead897
commit
a1630ab53e
2 changed files with 2 additions and 2 deletions
|
@ -355,7 +355,7 @@ void Thread::SetActivity(ThreadActivity value) {
|
||||||
// Set status if not waiting
|
// Set status if not waiting
|
||||||
if (status == ThreadStatus::Ready || status == ThreadStatus::Running) {
|
if (status == ThreadStatus::Ready || status == ThreadStatus::Running) {
|
||||||
SetStatus(ThreadStatus::Paused);
|
SetStatus(ThreadStatus::Paused);
|
||||||
Core::System::GetInstance().PrepareReschedule(processor_id);
|
kernel.PrepareReschedule(processor_id);
|
||||||
}
|
}
|
||||||
} else if (status == ThreadStatus::Paused) {
|
} else if (status == ThreadStatus::Paused) {
|
||||||
// Ready to reschedule
|
// Ready to reschedule
|
||||||
|
|
|
@ -95,7 +95,7 @@ void WaitObject::WakeupWaitingThread(std::shared_ptr<Thread> thread) {
|
||||||
}
|
}
|
||||||
if (resume) {
|
if (resume) {
|
||||||
thread->ResumeFromWait();
|
thread->ResumeFromWait();
|
||||||
Core::System::GetInstance().PrepareReschedule(thread->GetProcessorID());
|
kernel.PrepareReschedule(thread->GetProcessorID());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue