summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar bunnei2021-04-21 21:43:25 -0700
committerGravatar bunnei2021-05-05 16:40:52 -0700
commit0297448fbc6bf909b0bc061723c38208b9667b66 (patch)
tree7c21303536466b0a76331e4274ecb3e12eb40421 /src/core/hle/kernel/kernel.h
parenthle: kernel: HandleTable: Remove deprecated APIs. (diff)
downloadyuzu-0297448fbc6bf909b0bc061723c38208b9667b66.tar.gz
yuzu-0297448fbc6bf909b0bc061723c38208b9667b66.tar.xz
yuzu-0297448fbc6bf909b0bc061723c38208b9667b66.zip
hle: kernel: Migrate KClientPort to KAutoObject.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 43e49603b..19b3530b4 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -29,7 +29,7 @@ struct EventType;
29 29
30namespace Kernel { 30namespace Kernel {
31 31
32class ClientPort; 32class KClientPort;
33class GlobalSchedulerContext; 33class GlobalSchedulerContext;
34class HandleTable; 34class HandleTable;
35class KAutoObjectWithListContainer; 35class KAutoObjectWithListContainer;
@@ -60,7 +60,7 @@ constexpr EmuThreadHandle EmuThreadHandleReserved{1ULL << 63};
60/// Represents a single instance of the kernel. 60/// Represents a single instance of the kernel.
61class KernelCore { 61class KernelCore {
62private: 62private:
63 using NamedPortTable = std::unordered_map<std::string, std::shared_ptr<ClientPort>>; 63 using NamedPortTable = std::unordered_map<std::string, KClientPort*>;
64 64
65public: 65public:
66 /// Constructs an instance of the kernel using the given System 66 /// Constructs an instance of the kernel using the given System
@@ -168,7 +168,7 @@ public:
168 void InvalidateCpuInstructionCacheRange(VAddr addr, std::size_t size); 168 void InvalidateCpuInstructionCacheRange(VAddr addr, std::size_t size);
169 169
170 /// Adds a port to the named port table 170 /// Adds a port to the named port table
171 void AddNamedPort(std::string name, std::shared_ptr<ClientPort> port); 171 void AddNamedPort(std::string name, KClientPort* port);
172 172
173 /// Finds a port within the named port table with the given name. 173 /// Finds a port within the named port table with the given name.
174 NamedPortTable::iterator FindNamedPort(const std::string& name); 174 NamedPortTable::iterator FindNamedPort(const std::string& name);