Add interfacing to the Global Scheduler
This commit is contained in:
parent
a1ac0c6cb4
commit
57a71f899a
4 changed files with 34 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue