summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-13 22:04:10 -0400
committerGravatar FernandoS272020-02-22 11:18:06 -0400
commit0728dfef84ded5e68bdb3b0781ea00ca7cc85659 (patch)
tree2f0746f6070e5e27eaa15612458acbd33a911d6a /src/core/hle/kernel/kernel.h
parentMerge pull request #3444 from bunnei/linux-audio-fix (diff)
downloadyuzu-0728dfef84ded5e68bdb3b0781ea00ca7cc85659.tar.gz
yuzu-0728dfef84ded5e68bdb3b0781ea00ca7cc85659.tar.xz
yuzu-0728dfef84ded5e68bdb3b0781ea00ca7cc85659.zip
Kernel: Make global scheduler depend on KernelCore
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 1eede3063..0dfc559e9 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -29,6 +29,7 @@ class HandleTable;
29class PhysicalCore; 29class PhysicalCore;
30class Process; 30class Process;
31class ResourceLimit; 31class ResourceLimit;
32class Scheduler;
32class Synchronization; 33class Synchronization;
33class Thread; 34class Thread;
34 35
@@ -87,6 +88,12 @@ public:
87 /// Gets the sole instance of the global scheduler 88 /// Gets the sole instance of the global scheduler
88 const Kernel::GlobalScheduler& GlobalScheduler() const; 89 const Kernel::GlobalScheduler& GlobalScheduler() const;
89 90
91 /// Gets the sole instance of the Scheduler assoviated with cpu core 'id'
92 Kernel::Scheduler& Scheduler(std::size_t id);
93
94 /// Gets the sole instance of the Scheduler assoviated with cpu core 'id'
95 const Kernel::Scheduler& Scheduler(std::size_t id) const;
96
90 /// Gets the an instance of the respective physical CPU core. 97 /// Gets the an instance of the respective physical CPU core.
91 Kernel::PhysicalCore& PhysicalCore(std::size_t id); 98 Kernel::PhysicalCore& PhysicalCore(std::size_t id);
92 99