summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-09-07 22:34:05 -0400
committerGravatar GitHub2018-09-07 22:34:05 -0400
commit460ebc818731a443022cf7c897b52cbe66d1d664 (patch)
treeecf566e313375b34ce1abadcf6005d813c39397e /src/core/hle/kernel/kernel.h
parentMerge pull request #1260 from MerryMage/dynarmic (diff)
parentcore: Migrate current_process pointer to the kernel (diff)
downloadyuzu-460ebc818731a443022cf7c897b52cbe66d1d664.tar.gz
yuzu-460ebc818731a443022cf7c897b52cbe66d1d664.tar.xz
yuzu-460ebc818731a443022cf7c897b52cbe66d1d664.zip
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.h9
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:
65 /// Adds the given shared pointer to an internal list of active processes. 65 /// Adds the given shared pointer to an internal list of active processes.
66 void AppendNewProcess(SharedPtr<Process> process); 66 void AppendNewProcess(SharedPtr<Process> process);
67 67
68 /// Makes the given process the new current process.
69 void MakeCurrentProcess(SharedPtr<Process> process);
70
71 /// Retrieves a reference to the current process.
72 SharedPtr<Process>& CurrentProcess();
73
74 /// Retrieves a const reference to the current process.
75 const SharedPtr<Process>& CurrentProcess() const;
76
68 /// Adds a port to the named port table 77 /// Adds a port to the named port table
69 void AddNamedPort(std::string name, SharedPtr<ClientPort> port); 78 void AddNamedPort(std::string name, SharedPtr<ClientPort> port);
70 79