kernel: Use Scheduler class for threading.

This commit is contained in:
bunnei 2018-02-18 15:17:16 -05:00
parent c78d495161
commit ac81c02ed9
6 changed files with 26 additions and 174 deletions

View file

@ -133,7 +133,7 @@ void System::Reschedule() {
}
reschedule_pending = false;
Kernel::Reschedule();
Core::System::GetInstance().Scheduler().Reschedule();
}
System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) {
@ -154,6 +154,7 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) {
break;
}
scheduler = std::make_unique<Kernel::Scheduler>(cpu_core);
gpu_core = std::make_unique<Tegra::GPU>();
telemetry_session = std::make_unique<Core::TelemetrySession>();