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/hle/kernel/kernel.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/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index ab2e9bffa..c0771ecf0 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -65,6 +65,15 @@ public: /// Adds the given shared pointer to an internal list of active processes. void AppendNewProcess(SharedPtr<Process> process); + /// Makes the given process the new current process. + void MakeCurrentProcess(SharedPtr<Process> process); + + /// Retrieves a reference to the current process. + SharedPtr<Process>& CurrentProcess(); + + /// Retrieves a const reference to the current process. + const SharedPtr<Process>& CurrentProcess() const; + /// Adds a port to the named port table void AddNamedPort(std::string name, SharedPtr<ClientPort> port); |
