summaryrefslogtreecommitdiffstats
path: root/src/core/core.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-16 17:21:42 +0200
committerGitHub <noreply@github.com>2018-10-16 17:21:42 +0200
commit88b8383da28f05b2a30ba853b0578fe625f7dba6 (patch)
treef9224c0af9d0ddcc1e2496b638a6108077fcd198 /src/core/core.h
parentMerge pull request #1508 from lioncash/unique-reg (diff)
parentcore_cpu: Make Cpu scheduler instances unique_ptrs instead of shared_ptrs (diff)
downloadyuzu-88b8383da28f05b2a30ba853b0578fe625f7dba6.tar
yuzu-88b8383da28f05b2a30ba853b0578fe625f7dba6.tar.gz
yuzu-88b8383da28f05b2a30ba853b0578fe625f7dba6.tar.bz2
yuzu-88b8383da28f05b2a30ba853b0578fe625f7dba6.tar.lz
yuzu-88b8383da28f05b2a30ba853b0578fe625f7dba6.tar.xz
yuzu-88b8383da28f05b2a30ba853b0578fe625f7dba6.tar.zst
yuzu-88b8383da28f05b2a30ba853b0578fe625f7dba6.zip
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/core.h b/src/core/core.h
index ea4d53914..173be45f8 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -156,6 +156,9 @@ public:
/// Gets a CPU interface to the CPU core with the specified index
Cpu& CpuCore(std::size_t core_index);
+ /// Gets a CPU interface to the CPU core with the specified index
+ const Cpu& CpuCore(std::size_t core_index) const;
+
/// Gets the exclusive monitor
ExclusiveMonitor& Monitor();
@@ -172,7 +175,10 @@ public:
const VideoCore::RendererBase& Renderer() const;
/// Gets the scheduler for the CPU core with the specified index
- const std::shared_ptr<Kernel::Scheduler>& Scheduler(std::size_t core_index);
+ Kernel::Scheduler& Scheduler(std::size_t core_index);
+
+ /// Gets the scheduler for the CPU core with the specified index
+ const Kernel::Scheduler& Scheduler(std::size_t core_index) const;
/// Provides a pointer to the current process
Kernel::Process* CurrentProcess();