summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-03-29 22:02:57 +0100
committerFernandoS27 <fsahmkow27@gmail.com>2019-10-15 17:55:07 +0200
commit57a71f899a95ccaa2984c1cb35c083221a29fd6e (patch)
tree497f639114e7d26b9030600fb58d2474cc2883f0 /src/core/core.cpp
parentAddapt thread class to the new Scheduler (diff)
downloadyuzu-57a71f899a95ccaa2984c1cb35c083221a29fd6e.tar
yuzu-57a71f899a95ccaa2984c1cb35c083221a29fd6e.tar.gz
yuzu-57a71f899a95ccaa2984c1cb35c083221a29fd6e.tar.bz2
yuzu-57a71f899a95ccaa2984c1cb35c083221a29fd6e.tar.lz
yuzu-57a71f899a95ccaa2984c1cb35c083221a29fd6e.tar.xz
yuzu-57a71f899a95ccaa2984c1cb35c083221a29fd6e.tar.zst
yuzu-57a71f899a95ccaa2984c1cb35c083221a29fd6e.zip
Diffstat (limited to '')
-rw-r--r--src/core/core.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 4d0ac72a5..5565840fd 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -444,6 +444,16 @@ const Kernel::Scheduler& System::Scheduler(std::size_t core_index) const {
return CpuCore(core_index).Scheduler();
}
+/// Gets the global scheduler
+Kernel::GlobalScheduler& System::GlobalScheduler() {
+ return impl->kernel.GlobalScheduler();
+}
+
+/// Gets the global scheduler
+const Kernel::GlobalScheduler& System::GlobalScheduler() const {
+ return impl->kernel.GlobalScheduler();
+}
+
Kernel::Process* System::CurrentProcess() {
return impl->kernel.CurrentProcess();
}