diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 799e5e0d8..b4fd1d3f3 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include "core/hle/kernel/kernel.h" | 18 | #include "core/hle/kernel/kernel.h" |
| 19 | #include "core/hle/kernel/process.h" | 19 | #include "core/hle/kernel/process.h" |
| 20 | #include "core/hle/kernel/resource_limit.h" | 20 | #include "core/hle/kernel/resource_limit.h" |
| 21 | #include "core/hle/kernel/scheduler.h" | ||
| 21 | #include "core/hle/kernel/thread.h" | 22 | #include "core/hle/kernel/thread.h" |
| 22 | #include "core/hle/lock.h" | 23 | #include "core/hle/lock.h" |
| 23 | #include "core/hle/result.h" | 24 | #include "core/hle/result.h" |
| @@ -140,6 +141,7 @@ struct KernelCore::Impl { | |||
| 140 | // Lists all processes that exist in the current session. | 141 | // Lists all processes that exist in the current session. |
| 141 | std::vector<SharedPtr<Process>> process_list; | 142 | std::vector<SharedPtr<Process>> process_list; |
| 142 | Process* current_process = nullptr; | 143 | Process* current_process = nullptr; |
| 144 | Kernel::GlobalScheduler global_scheduler; | ||
| 143 | 145 | ||
| 144 | SharedPtr<ResourceLimit> system_resource_limit; | 146 | SharedPtr<ResourceLimit> system_resource_limit; |
| 145 | 147 | ||
| @@ -203,6 +205,14 @@ const std::vector<SharedPtr<Process>>& KernelCore::GetProcessList() const { | |||
| 203 | return impl->process_list; | 205 | return impl->process_list; |
| 204 | } | 206 | } |
| 205 | 207 | ||
| 208 | Kernel::GlobalScheduler& KernelCore::GlobalScheduler() { | ||
| 209 | return impl->global_scheduler; | ||
| 210 | } | ||
| 211 | |||
| 212 | const Kernel::GlobalScheduler& KernelCore::GlobalScheduler() const { | ||
| 213 | return impl->global_scheduler; | ||
| 214 | } | ||
| 215 | |||
| 206 | void KernelCore::AddNamedPort(std::string name, SharedPtr<ClientPort> port) { | 216 | void KernelCore::AddNamedPort(std::string name, SharedPtr<ClientPort> port) { |
| 207 | impl->named_ports.emplace(std::move(name), std::move(port)); | 217 | impl->named_ports.emplace(std::move(name), std::move(port)); |
| 208 | } | 218 | } |