Kernel: Implement Time Manager.

This commit is contained in:
Fernando Sahmkow 2020-02-14 10:56:27 -04:00 committed by FernandoS27
parent 179bafa7cb
commit 5c90d22f3d
5 changed files with 98 additions and 1 deletions

View file

@ -33,6 +33,7 @@ class ResourceLimit;
class Scheduler;
class Synchronization;
class Thread;
class TimeManager;
/// Represents a single instance of the kernel.
class KernelCore {
@ -107,6 +108,12 @@ public:
/// Gets the an instance of the Synchronization Interface.
const Kernel::Synchronization& Synchronization() const;
/// Gets the an instance of the TimeManager Interface.
Kernel::TimeManager& TimeManager();
/// Gets the an instance of the TimeManager Interface.
const Kernel::TimeManager& TimeManager() const;
/// Stops execution of 'id' core, in order to reschedule a new thread.
void PrepareReschedule(std::size_t id);