diff options
| author | 2020-02-13 22:04:10 -0400 | |
|---|---|---|
| committer | 2020-02-22 11:18:06 -0400 | |
| commit | 0728dfef84ded5e68bdb3b0781ea00ca7cc85659 (patch) | |
| tree | 2f0746f6070e5e27eaa15612458acbd33a911d6a /src/core/hle/kernel/kernel.h | |
| parent | Merge pull request #3444 from bunnei/linux-audio-fix (diff) | |
| download | yuzu-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.h | 7 |
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; | |||
| 29 | class PhysicalCore; | 29 | class PhysicalCore; |
| 30 | class Process; | 30 | class Process; |
| 31 | class ResourceLimit; | 31 | class ResourceLimit; |
| 32 | class Scheduler; | ||
| 32 | class Synchronization; | 33 | class Synchronization; |
| 33 | class Thread; | 34 | class 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 | ||