summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar bunnei2021-04-03 22:22:36 -0700
committerGravatar bunnei2021-05-05 16:40:50 -0700
commit7ccbdd4d8d3dea7294d2cac38779cceea9745d52 (patch)
tree3106289a5c5a6e4bf50bc09a548c8408aa29fbad /src/core/hle/kernel/kernel.h
parenthle: kernel: Refactor IPC interfaces to not use std::shared_ptr. (diff)
downloadyuzu-7ccbdd4d8d3dea7294d2cac38779cceea9745d52.tar.gz
yuzu-7ccbdd4d8d3dea7294d2cac38779cceea9745d52.tar.xz
yuzu-7ccbdd4d8d3dea7294d2cac38779cceea9745d52.zip
hle: kernel: Migrate KProcess to KAutoObject.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 3f5c2aec7..b78602f46 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -91,7 +91,7 @@ public:
91 KScopedAutoObject<KThread> RetrieveThreadFromGlobalHandleTable(Handle handle) const; 91 KScopedAutoObject<KThread> RetrieveThreadFromGlobalHandleTable(Handle handle) const;
92 92
93 /// Adds the given shared pointer to an internal list of active processes. 93 /// Adds the given shared pointer to an internal list of active processes.
94 void AppendNewProcess(std::shared_ptr<Process> process); 94 void AppendNewProcess(Process* process);
95 95
96 /// Makes the given process the new current process. 96 /// Makes the given process the new current process.
97 void MakeCurrentProcess(Process* process); 97 void MakeCurrentProcess(Process* process);
@@ -103,7 +103,7 @@ public:
103 const Process* CurrentProcess() const; 103 const Process* CurrentProcess() const;
104 104
105 /// Retrieves the list of processes. 105 /// Retrieves the list of processes.
106 const std::vector<std::shared_ptr<Process>>& GetProcessList() const; 106 const std::vector<Process*>& GetProcessList() const;
107 107
108 /// Gets the sole instance of the global scheduler 108 /// Gets the sole instance of the global scheduler
109 Kernel::GlobalSchedulerContext& GlobalSchedulerContext(); 109 Kernel::GlobalSchedulerContext& GlobalSchedulerContext();