summaryrefslogtreecommitdiff
path: root/src/core/core_cpu.h
diff options
context:
space:
mode:
authorGravatar David2019-10-28 10:53:27 +1100
committerGravatar GitHub2019-10-28 10:53:27 +1100
commit4c5731c34f0915457a31c60c9f70a2f169ea575d (patch)
tree7f03a7f892370b59e56ae06c6c74514f1cc44998 /src/core/core_cpu.h
parentMerge pull request #3034 from ReinUsesLisp/w4244-maxwell3d (diff)
parentKernel Thread: Cleanup THREADPROCESSORID_DONT_UPDATE. (diff)
downloadyuzu-4c5731c34f0915457a31c60c9f70a2f169ea575d.tar.gz
yuzu-4c5731c34f0915457a31c60c9f70a2f169ea575d.tar.xz
yuzu-4c5731c34f0915457a31c60c9f70a2f169ea575d.zip
Merge pull request #2971 from FernandoS27/new-scheduler-v2
Kernel: Implement a New Thread Scheduler V2
Diffstat (limited to 'src/core/core_cpu.h')
-rw-r--r--src/core/core_cpu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/core_cpu.h b/src/core/core_cpu.h
index 7589beb8c..cafca8df7 100644
--- a/src/core/core_cpu.h
+++ b/src/core/core_cpu.h
@@ -12,8 +12,9 @@
12#include "common/common_types.h" 12#include "common/common_types.h"
13 13
14namespace Kernel { 14namespace Kernel {
15class GlobalScheduler;
15class Scheduler; 16class Scheduler;
16} 17} // namespace Kernel
17 18
18namespace Core { 19namespace Core {
19class System; 20class System;
@@ -83,6 +84,8 @@ public:
83 return core_index; 84 return core_index;
84 } 85 }
85 86
87 void Shutdown();
88
86 static std::unique_ptr<ExclusiveMonitor> MakeExclusiveMonitor(std::size_t num_cores); 89 static std::unique_ptr<ExclusiveMonitor> MakeExclusiveMonitor(std::size_t num_cores);
87 90
88private: 91private:
@@ -90,6 +93,7 @@ private:
90 93
91 std::unique_ptr<ARM_Interface> arm_interface; 94 std::unique_ptr<ARM_Interface> arm_interface;
92 CpuBarrier& cpu_barrier; 95 CpuBarrier& cpu_barrier;
96 Kernel::GlobalScheduler& global_scheduler;
93 std::unique_ptr<Kernel::Scheduler> scheduler; 97 std::unique_ptr<Kernel::Scheduler> scheduler;
94 Timing::CoreTiming& core_timing; 98 Timing::CoreTiming& core_timing;
95 99