diff options
| author | 2019-03-29 17:02:57 -0400 | |
|---|---|---|
| committer | 2019-10-15 11:55:07 -0400 | |
| commit | 57a71f899a95ccaa2984c1cb35c083221a29fd6e (patch) | |
| tree | 497f639114e7d26b9030600fb58d2474cc2883f0 /src/core/core.h | |
| parent | Addapt thread class to the new Scheduler (diff) | |
| download | yuzu-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.h | 7 |
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 { | |||
| 27 | class KernelCore; | 27 | class KernelCore; |
| 28 | class Process; | 28 | class Process; |
| 29 | class Scheduler; | 29 | class Scheduler; |
| 30 | class GlobalScheduler; | ||
| 30 | } // namespace Kernel | 31 | } // namespace Kernel |
| 31 | 32 | ||
| 32 | namespace Loader { | 33 | namespace 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 | ||