summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-03-29 17:02:57 -0400
committerGravatar FernandoS272019-10-15 11:55:07 -0400
commit57a71f899a95ccaa2984c1cb35c083221a29fd6e (patch)
tree497f639114e7d26b9030600fb58d2474cc2883f0 /src/core/core.h
parentAddapt thread class to the new Scheduler (diff)
downloadyuzu-57a71f899a95ccaa2984c1cb35c083221a29fd6e.tar.gz
yuzu-57a71f899a95ccaa2984c1cb35c083221a29fd6e.tar.xz
yuzu-57a71f899a95ccaa2984c1cb35c083221a29fd6e.zip
Add interfacing to the Global Scheduler
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 90e7ac607..2a002f6d7 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -27,6 +27,7 @@ namespace Kernel {
27class KernelCore; 27class KernelCore;
28class Process; 28class Process;
29class Scheduler; 29class Scheduler;
30class GlobalScheduler;
30} // namespace Kernel 31} // namespace Kernel
31 32
32namespace Loader { 33namespace Loader {
@@ -238,6 +239,12 @@ public:
238 /// Gets the scheduler for the CPU core with the specified index 239 /// Gets the scheduler for the CPU core with the specified index
239 const Kernel::Scheduler& Scheduler(std::size_t core_index) const; 240 const Kernel::Scheduler& Scheduler(std::size_t core_index) const;
240 241
242 /// Gets the global scheduler
243 Kernel::GlobalScheduler& GlobalScheduler();
244
245 /// Gets the global scheduler
246 const Kernel::GlobalScheduler& GlobalScheduler() const;
247
241 /// Provides a pointer to the current process 248 /// Provides a pointer to the current process
242 Kernel::Process* CurrentProcess(); 249 Kernel::Process* CurrentProcess();
243 250