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/hle/kernel/kernel.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/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 0cc44ee76..f9f5bdc88 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -25,6 +25,7 @@ class HandleTable; | |||
| 25 | class Process; | 25 | class Process; |
| 26 | class ResourceLimit; | 26 | class ResourceLimit; |
| 27 | class Thread; | 27 | class Thread; |
| 28 | class GlobalScheduler; | ||
| 28 | 29 | ||
| 29 | /// Represents a single instance of the kernel. | 30 | /// Represents a single instance of the kernel. |
| 30 | class KernelCore { | 31 | class KernelCore { |
| @@ -75,6 +76,12 @@ public: | |||
| 75 | /// Retrieves the list of processes. | 76 | /// Retrieves the list of processes. |
| 76 | const std::vector<SharedPtr<Process>>& GetProcessList() const; | 77 | const std::vector<SharedPtr<Process>>& GetProcessList() const; |
| 77 | 78 | ||
| 79 | /// Gets the sole instance of the global scheduler | ||
| 80 | Kernel::GlobalScheduler& GlobalScheduler(); | ||
| 81 | |||
| 82 | /// Gets the sole instance of the global scheduler | ||
| 83 | const Kernel::GlobalScheduler& GlobalScheduler() const; | ||
| 84 | |||
| 78 | /// Adds a port to the named port table | 85 | /// Adds a port to the named port table |
| 79 | void AddNamedPort(std::string name, SharedPtr<ClientPort> port); | 86 | void AddNamedPort(std::string name, SharedPtr<ClientPort> port); |
| 80 | 87 | ||