summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index ea00c89f5..f12d061eb 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -20,6 +20,7 @@ namespace Kernel {
20class ClientPort; 20class ClientPort;
21class HandleTable; 21class HandleTable;
22class Process; 22class Process;
23class ReadableEvent;
23class ResourceLimit; 24class ResourceLimit;
24class Thread; 25class Thread;
25class Timer; 26class Timer;
@@ -27,6 +28,7 @@ class Timer;
27/// Represents a single instance of the kernel. 28/// Represents a single instance of the kernel.
28class KernelCore { 29class KernelCore {
29private: 30private:
31 using NamedEventTable = std::unordered_map<std::string, SharedPtr<ReadableEvent>>;
30 using NamedPortTable = std::unordered_map<std::string, SharedPtr<ClientPort>>; 32 using NamedPortTable = std::unordered_map<std::string, SharedPtr<ClientPort>>;
31 33
32public: 34public:
@@ -66,6 +68,15 @@ public:
66 /// Retrieves a const pointer to the current process. 68 /// Retrieves a const pointer to the current process.
67 const Process* CurrentProcess() const; 69 const Process* CurrentProcess() const;
68 70
71 /// Adds an event to the named event table
72 void AddNamedEvent(std::string name, SharedPtr<ReadableEvent> event);
73
74 /// Finds an event within the named event table wit the given name.
75 NamedEventTable::iterator FindNamedEvent(const std::string& name);
76
77 /// Finds an event within the named event table wit the given name.
78 NamedEventTable::const_iterator FindNamedEvent(const std::string& name) const;
79
69 /// Adds a port to the named port table 80 /// Adds a port to the named port table
70 void AddNamedPort(std::string name, SharedPtr<ClientPort> port); 81 void AddNamedPort(std::string name, SharedPtr<ClientPort> port);
71 82