diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-07 22:34:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 22:34:05 -0400 |
commit | 460ebc818731a443022cf7c897b52cbe66d1d664 (patch) | |
tree | ecf566e313375b34ce1abadcf6005d813c39397e /src/core/core.h | |
parent | 6ac1bd9f5dcabb2f4e765caf87b288485f756d2c (diff) | |
parent | 3f17fe71334a27a60bf54adc55eabe2356ed31f5 (diff) |
Merge pull request #1257 from lioncash/process
core: Migrate current_process pointer to the kernel
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/core.h b/src/core/core.h index 5c3c0e2a1..ab3663427 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -174,9 +174,12 @@ public: /// Gets the scheduler for the CPU core with the specified index const std::shared_ptr<Kernel::Scheduler>& Scheduler(size_t core_index); - /// Gets the current process + /// Provides a reference to the current process Kernel::SharedPtr<Kernel::Process>& CurrentProcess(); + /// Provides a constant reference to the current process. + const Kernel::SharedPtr<Kernel::Process>& CurrentProcess() const; + /// Provides a reference to the kernel instance. Kernel::KernelCore& Kernel(); |