summaryrefslogtreecommitdiffstats
path: root/src/core/core.h
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.h
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 'src/core/core.h')
-rw-r--r--src/core/core.h7
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 {
class KernelCore;
class Process;
class Scheduler;
+class GlobalScheduler;
} // namespace Kernel
namespace Loader {
@@ -238,6 +239,12 @@ public:
/// Gets the scheduler for the CPU core with the specified index
const Kernel::Scheduler& Scheduler(std::size_t core_index) const;
+ /// Gets the global scheduler
+ Kernel::GlobalScheduler& GlobalScheduler();
+
+ /// Gets the global scheduler
+ const Kernel::GlobalScheduler& GlobalScheduler() const;
+
/// Provides a pointer to the current process
Kernel::Process* CurrentProcess();