diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-14 15:56:27 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2020-02-22 16:18:07 +0100 |
commit | 5c90d22f3d92b9be818b19e03dd57eb217eb6567 (patch) | |
tree | 206a925ef68687d7b90e2b11d9d68bc42f2ce9d3 /src/core/hle/kernel/kernel.cpp | |
parent | Kernel: Rename ThreadCallbackHandleTable and Setup Thread Ids on Kernel. (diff) | |
download | yuzu-5c90d22f3d92b9be818b19e03dd57eb217eb6567.tar yuzu-5c90d22f3d92b9be818b19e03dd57eb217eb6567.tar.gz yuzu-5c90d22f3d92b9be818b19e03dd57eb217eb6567.tar.bz2 yuzu-5c90d22f3d92b9be818b19e03dd57eb217eb6567.tar.lz yuzu-5c90d22f3d92b9be818b19e03dd57eb217eb6567.tar.xz yuzu-5c90d22f3d92b9be818b19e03dd57eb217eb6567.tar.zst yuzu-5c90d22f3d92b9be818b19e03dd57eb217eb6567.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index b3a5d7505..de14e1936 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -27,6 +27,7 @@ #include "core/hle/kernel/scheduler.h" #include "core/hle/kernel/synchronization.h" #include "core/hle/kernel/thread.h" +#include "core/hle/kernel/time_manager.h" #include "core/hle/lock.h" #include "core/hle/result.h" #include "core/memory.h" @@ -100,7 +101,7 @@ static void ThreadWakeupCallback(u64 thread_handle, [[maybe_unused]] s64 cycles_ struct KernelCore::Impl { explicit Impl(Core::System& system, KernelCore& kernel) - : system{system}, global_scheduler{kernel}, synchronization{system} {} + : system{system}, global_scheduler{kernel}, synchronization{system}, time_manager{system} {} void Initialize(KernelCore& kernel) { Shutdown(); @@ -238,6 +239,7 @@ struct KernelCore::Impl { Process* current_process = nullptr; Kernel::GlobalScheduler global_scheduler; Kernel::Synchronization synchronization; + Kernel::TimeManager time_manager; std::shared_ptr<ResourceLimit> system_resource_limit; @@ -337,6 +339,14 @@ const Kernel::Synchronization& KernelCore::Synchronization() const { return impl->synchronization; } +Kernel::TimeManager& KernelCore::TimeManager() { + return impl->time_manager; +} + +const Kernel::TimeManager& KernelCore::TimeManager() const { + return impl->time_manager; +} + Core::ExclusiveMonitor& KernelCore::GetExclusiveMonitor() { return *impl->exclusive_monitor; } |