summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-02-19 17:23:05 -0500
committerGravatar GitHub2018-02-19 17:23:05 -0500
commit23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9 (patch)
tree48ce770db1df193eba107183d52f03543c81f355 /src/core/core.h
parentMerge pull request #203 from Subv/ensure_save_data (diff)
parentscheduler: Cleanup based on PR feedback. (diff)
downloadyuzu-23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9.tar.gz
yuzu-23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9.tar.xz
yuzu-23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9.zip
Merge pull request #202 from bunnei/scheduler-cleanup
Scheduler cleanup
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/core.h b/src/core/core.h
index f63cc47cc..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
@@ -140,9 +145,8 @@ private:
140 /// AppLoader used to load the current executing application 145 /// AppLoader used to load the current executing application
141 std::unique_ptr<Loader::AppLoader> app_loader; 146 std::unique_ptr<Loader::AppLoader> app_loader;
142 147
143 ///< ARM11 CPU core 148 std::shared_ptr<ARM_Interface> cpu_core;
144 std::unique_ptr<ARM_Interface> cpu_core; 149 std::unique_ptr<Kernel::Scheduler> scheduler;
145
146 std::unique_ptr<Tegra::GPU> gpu_core; 150 std::unique_ptr<Tegra::GPU> gpu_core;
147 151
148 /// When true, signals that a reschedule should happen 152 /// When true, signals that a reschedule should happen