summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-02-18 15:17:16 -0500
committerGravatar bunnei2018-02-18 15:17:16 -0500
commitac81c02ed9401b137e83bece2edd6dee8d0a0af2 (patch)
treef849c805fdb9ac756ece2e2f72d6009c58676bd6 /src/core/core.h
parentkernel: Add Scheduler, which encapsulates the scheduling loading from Thread ... (diff)
downloadyuzu-ac81c02ed9401b137e83bece2edd6dee8d0a0af2.tar.gz
yuzu-ac81c02ed9401b137e83bece2edd6dee8d0a0af2.tar.xz
yuzu-ac81c02ed9401b137e83bece2edd6dee8d0a0af2.zip
kernel: Use Scheduler class for threading.
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index e7599e18c..ada23b347 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -7,6 +7,7 @@
7#include <memory> 7#include <memory>
8#include <string> 8#include <string>
9#include "common/common_types.h" 9#include "common/common_types.h"
10#include "core/hle/kernel/scheduler.h"
10#include "core/loader/loader.h" 11#include "core/loader/loader.h"
11#include "core/memory.h" 12#include "core/memory.h"
12#include "core/perf_stats.h" 13#include "core/perf_stats.h"
@@ -107,6 +108,10 @@ public:
107 return *gpu_core; 108 return *gpu_core;
108 } 109 }
109 110
111 Kernel::Scheduler& Scheduler() {
112 return *scheduler;
113 }
114
110 PerfStats perf_stats; 115 PerfStats perf_stats;
111 FrameLimiter frame_limiter; 116 FrameLimiter frame_limiter;
112 117
@@ -141,6 +146,7 @@ private:
141 std::unique_ptr<Loader::AppLoader> app_loader; 146 std::unique_ptr<Loader::AppLoader> app_loader;
142 147
143 std::shared_ptr<ARM_Interface> cpu_core; 148 std::shared_ptr<ARM_Interface> cpu_core;
149 std::unique_ptr<Kernel::Scheduler> scheduler;
144 std::unique_ptr<Tegra::GPU> gpu_core; 150 std::unique_ptr<Tegra::GPU> gpu_core;
145 151
146 /// When true, signals that a reschedule should happen 152 /// When true, signals that a reschedule should happen