diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 11 |
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 { | |||
| 20 | class ClientPort; | 20 | class ClientPort; |
| 21 | class HandleTable; | 21 | class HandleTable; |
| 22 | class Process; | 22 | class Process; |
| 23 | class ReadableEvent; | ||
| 23 | class ResourceLimit; | 24 | class ResourceLimit; |
| 24 | class Thread; | 25 | class Thread; |
| 25 | class Timer; | 26 | class Timer; |
| @@ -27,6 +28,7 @@ class Timer; | |||
| 27 | /// Represents a single instance of the kernel. | 28 | /// Represents a single instance of the kernel. |
| 28 | class KernelCore { | 29 | class KernelCore { |
| 29 | private: | 30 | private: |
| 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 | ||
| 32 | public: | 34 | public: |
| @@ -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 | ||