diff options
| author | 2020-12-20 20:57:54 -0800 | |
|---|---|---|
| committer | 2020-12-20 20:57:54 -0800 | |
| commit | 1279c7ce7afd3d1bf2b4e33aa922158acf2cd060 (patch) | |
| tree | 6db8088caed2bd957187e4730f51424325038fa5 /src/core/hle/kernel/kernel.h | |
| parent | Merge pull request #5201 from ameerj/bufferq-refactor (diff) | |
| parent | hle: kernel: Process: Various style fixes based on code review feedback. (diff) | |
| download | yuzu-1279c7ce7afd3d1bf2b4e33aa922158acf2cd060.tar.gz yuzu-1279c7ce7afd3d1bf2b4e33aa922158acf2cd060.tar.xz yuzu-1279c7ce7afd3d1bf2b4e33aa922158acf2cd060.zip | |
Merge pull request #5131 from bunnei/scheduler-rewrite
Rewrite Kernel scheduler based on Atmosphere
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index a73a93039..5846c3f39 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -35,12 +35,12 @@ class SlabHeap; | |||
| 35 | 35 | ||
| 36 | class AddressArbiter; | 36 | class AddressArbiter; |
| 37 | class ClientPort; | 37 | class ClientPort; |
| 38 | class GlobalScheduler; | 38 | class GlobalSchedulerContext; |
| 39 | class HandleTable; | 39 | class HandleTable; |
| 40 | class PhysicalCore; | 40 | class PhysicalCore; |
| 41 | class Process; | 41 | class Process; |
| 42 | class ResourceLimit; | 42 | class ResourceLimit; |
| 43 | class Scheduler; | 43 | class KScheduler; |
| 44 | class SharedMemory; | 44 | class SharedMemory; |
| 45 | class Synchronization; | 45 | class Synchronization; |
| 46 | class Thread; | 46 | class Thread; |
| @@ -102,16 +102,16 @@ public: | |||
| 102 | const std::vector<std::shared_ptr<Process>>& GetProcessList() const; | 102 | const std::vector<std::shared_ptr<Process>>& GetProcessList() const; |
| 103 | 103 | ||
| 104 | /// Gets the sole instance of the global scheduler | 104 | /// Gets the sole instance of the global scheduler |
| 105 | Kernel::GlobalScheduler& GlobalScheduler(); | 105 | Kernel::GlobalSchedulerContext& GlobalSchedulerContext(); |
| 106 | 106 | ||
| 107 | /// Gets the sole instance of the global scheduler | 107 | /// Gets the sole instance of the global scheduler |
| 108 | const Kernel::GlobalScheduler& GlobalScheduler() const; | 108 | const Kernel::GlobalSchedulerContext& GlobalSchedulerContext() const; |
| 109 | 109 | ||
| 110 | /// Gets the sole instance of the Scheduler assoviated with cpu core 'id' | 110 | /// Gets the sole instance of the Scheduler assoviated with cpu core 'id' |
| 111 | Kernel::Scheduler& Scheduler(std::size_t id); | 111 | Kernel::KScheduler& Scheduler(std::size_t id); |
| 112 | 112 | ||
| 113 | /// Gets the sole instance of the Scheduler assoviated with cpu core 'id' | 113 | /// Gets the sole instance of the Scheduler assoviated with cpu core 'id' |
| 114 | const Kernel::Scheduler& Scheduler(std::size_t id) const; | 114 | const Kernel::KScheduler& Scheduler(std::size_t id) const; |
| 115 | 115 | ||
| 116 | /// Gets the an instance of the respective physical CPU core. | 116 | /// Gets the an instance of the respective physical CPU core. |
| 117 | Kernel::PhysicalCore& PhysicalCore(std::size_t id); | 117 | Kernel::PhysicalCore& PhysicalCore(std::size_t id); |
| @@ -120,10 +120,7 @@ public: | |||
| 120 | const Kernel::PhysicalCore& PhysicalCore(std::size_t id) const; | 120 | const Kernel::PhysicalCore& PhysicalCore(std::size_t id) const; |
| 121 | 121 | ||
| 122 | /// Gets the sole instance of the Scheduler at the current running core. | 122 | /// Gets the sole instance of the Scheduler at the current running core. |
| 123 | Kernel::Scheduler& CurrentScheduler(); | 123 | Kernel::KScheduler* CurrentScheduler(); |
| 124 | |||
| 125 | /// Gets the sole instance of the Scheduler at the current running core. | ||
| 126 | const Kernel::Scheduler& CurrentScheduler() const; | ||
| 127 | 124 | ||
| 128 | /// Gets the an instance of the current physical CPU core. | 125 | /// Gets the an instance of the current physical CPU core. |
| 129 | Kernel::PhysicalCore& CurrentPhysicalCore(); | 126 | Kernel::PhysicalCore& CurrentPhysicalCore(); |