Add interfacing to the Global Scheduler

This commit is contained in:
Fernando Sahmkow 2019-03-29 17:02:57 -04:00 committed by FernandoS27
parent a1ac0c6cb4
commit 57a71f899a
4 changed files with 34 additions and 0 deletions

View file

@ -444,6 +444,16 @@ const Kernel::Scheduler& System::Scheduler(std::size_t core_index) const {
return CpuCore(core_index).Scheduler();
}
/// Gets the global scheduler
Kernel::GlobalScheduler& System::GlobalScheduler() {
return impl->kernel.GlobalScheduler();
}
/// Gets the global scheduler
const Kernel::GlobalScheduler& System::GlobalScheduler() const {
return impl->kernel.GlobalScheduler();
}
Kernel::Process* System::CurrentProcess() {
return impl->kernel.CurrentProcess();
}