summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-14 10:56:27 -0400
committerGravatar FernandoS272020-02-22 11:18:07 -0400
commit5c90d22f3d92b9be818b19e03dd57eb217eb6567 (patch)
tree206a925ef68687d7b90e2b11d9d68bc42f2ce9d3 /src/core/hle/kernel/kernel.h
parentKernel: Rename ThreadCallbackHandleTable and Setup Thread Ids on Kernel. (diff)
downloadyuzu-5c90d22f3d92b9be818b19e03dd57eb217eb6567.tar.gz
yuzu-5c90d22f3d92b9be818b19e03dd57eb217eb6567.tar.xz
yuzu-5c90d22f3d92b9be818b19e03dd57eb217eb6567.zip
Kernel: Implement Time Manager.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index c5e05f7b6..76fd12ace 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -33,6 +33,7 @@ class ResourceLimit;
33class Scheduler; 33class Scheduler;
34class Synchronization; 34class Synchronization;
35class Thread; 35class Thread;
36class TimeManager;
36 37
37/// Represents a single instance of the kernel. 38/// Represents a single instance of the kernel.
38class KernelCore { 39class KernelCore {
@@ -107,6 +108,12 @@ public:
107 /// Gets the an instance of the Synchronization Interface. 108 /// Gets the an instance of the Synchronization Interface.
108 const Kernel::Synchronization& Synchronization() const; 109 const Kernel::Synchronization& Synchronization() const;
109 110
111 /// Gets the an instance of the TimeManager Interface.
112 Kernel::TimeManager& TimeManager();
113
114 /// Gets the an instance of the TimeManager Interface.
115 const Kernel::TimeManager& TimeManager() const;
116
110 /// Stops execution of 'id' core, in order to reschedule a new thread. 117 /// Stops execution of 'id' core, in order to reschedule a new thread.
111 void PrepareReschedule(std::size_t id); 118 void PrepareReschedule(std::size_t id);
112 119