diff options
| author | 2021-12-12 22:43:25 -0800 | |
|---|---|---|
| committer | 2021-12-12 22:43:25 -0800 | |
| commit | 280c77989880e81f622440b157a0ce1b7139847b (patch) | |
| tree | 49a3ef8127d721dc44effb8315e5db7e796336f4 /src/core/hle/kernel/kernel.h | |
| parent | Merge pull request #7495 from FernandoS27/text-blit-fix-again (diff) | |
| parent | hle: kernel k_scheduler: EnableScheduling: Remove redundant GetCurrentThreadP... (diff) | |
| download | yuzu-280c77989880e81f622440b157a0ce1b7139847b.tar.gz yuzu-280c77989880e81f622440b157a0ce1b7139847b.tar.xz yuzu-280c77989880e81f622440b157a0ce1b7139847b.zip | |
Merge pull request #7462 from bunnei/kernel-improve-scheduling
Kernel: Improve threading & scheduling V3
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index d847fd0c5..b9b423908 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -149,6 +149,9 @@ public: | |||
| 149 | /// Gets the an instance of the respective physical CPU core. | 149 | /// Gets the an instance of the respective physical CPU core. |
| 150 | const Kernel::PhysicalCore& PhysicalCore(std::size_t id) const; | 150 | const Kernel::PhysicalCore& PhysicalCore(std::size_t id) const; |
| 151 | 151 | ||
| 152 | /// Gets the current physical core index for the running host thread. | ||
| 153 | std::size_t CurrentPhysicalCoreIndex() const; | ||
| 154 | |||
| 152 | /// Gets the sole instance of the Scheduler at the current running core. | 155 | /// Gets the sole instance of the Scheduler at the current running core. |
| 153 | Kernel::KScheduler* CurrentScheduler(); | 156 | Kernel::KScheduler* CurrentScheduler(); |
| 154 | 157 | ||
| @@ -272,6 +275,8 @@ public: | |||
| 272 | 275 | ||
| 273 | bool IsMulticore() const; | 276 | bool IsMulticore() const; |
| 274 | 277 | ||
| 278 | bool IsShuttingDown() const; | ||
| 279 | |||
| 275 | void EnterSVCProfile(); | 280 | void EnterSVCProfile(); |
| 276 | 281 | ||
| 277 | void ExitSVCProfile(); | 282 | void ExitSVCProfile(); |