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

@ -27,6 +27,7 @@ namespace Kernel {
class KernelCore;
class Process;
class Scheduler;
class GlobalScheduler;
} // namespace Kernel
namespace Loader {
@ -238,6 +239,12 @@ public:
/// Gets the scheduler for the CPU core with the specified index
const Kernel::Scheduler& Scheduler(std::size_t core_index) const;
/// Gets the global scheduler
Kernel::GlobalScheduler& GlobalScheduler();
/// Gets the global scheduler
const Kernel::GlobalScheduler& GlobalScheduler() const;
/// Provides a pointer to the current process
Kernel::Process* CurrentProcess();