diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-03-29 17:02:57 -0400 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-15 11:55:07 -0400 |
commit | 57a71f899a95ccaa2984c1cb35c083221a29fd6e (patch) | |
tree | 497f639114e7d26b9030600fb58d2474cc2883f0 /src/core/core.h | |
parent | a1ac0c6cb47e10863b0bfbb1a6aadc71ccc513ab (diff) |
Add interfacing to the Global Scheduler
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 90e7ac6075..2a002f6d77 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -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(); |