diff options
| author | 2018-11-27 09:18:29 -0500 | |
|---|---|---|
| committer | 2018-11-29 08:48:40 -0500 | |
| commit | a342bcc9b130e9bd78720e09e04c92dcac8840d0 (patch) | |
| tree | df1d16c2a71b121fc449b53fc931c6fac8ccf82a /src/core/hle/kernel/kernel.h | |
| parent | core: Port all current usages of Event to Readable/WritableEvent (diff) | |
| download | yuzu-a342bcc9b130e9bd78720e09e04c92dcac8840d0.tar.gz yuzu-a342bcc9b130e9bd78720e09e04c92dcac8840d0.tar.xz yuzu-a342bcc9b130e9bd78720e09e04c92dcac8840d0.zip | |
kernel/event: Reference ReadableEvent from WritableEvent
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index f12d061eb..ea00c89f5 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -20,7 +20,6 @@ namespace Kernel { | |||
| 20 | class ClientPort; | 20 | class ClientPort; |
| 21 | class HandleTable; | 21 | class HandleTable; |
| 22 | class Process; | 22 | class Process; |
| 23 | class ReadableEvent; | ||
| 24 | class ResourceLimit; | 23 | class ResourceLimit; |
| 25 | class Thread; | 24 | class Thread; |
| 26 | class Timer; | 25 | class Timer; |
| @@ -28,7 +27,6 @@ class Timer; | |||
| 28 | /// Represents a single instance of the kernel. | 27 | /// Represents a single instance of the kernel. |
| 29 | class KernelCore { | 28 | class KernelCore { |
| 30 | private: | 29 | private: |
| 31 | using NamedEventTable = std::unordered_map<std::string, SharedPtr<ReadableEvent>>; | ||
| 32 | using NamedPortTable = std::unordered_map<std::string, SharedPtr<ClientPort>>; | 30 | using NamedPortTable = std::unordered_map<std::string, SharedPtr<ClientPort>>; |
| 33 | 31 | ||
| 34 | public: | 32 | public: |
| @@ -68,15 +66,6 @@ public: | |||
| 68 | /// Retrieves a const pointer to the current process. | 66 | /// Retrieves a const pointer to the current process. |
| 69 | const Process* CurrentProcess() const; | 67 | const Process* CurrentProcess() const; |
| 70 | 68 | ||
| 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 | |||
| 80 | /// Adds a port to the named port table | 69 | /// Adds a port to the named port table |
| 81 | void AddNamedPort(std::string name, SharedPtr<ClientPort> port); | 70 | void AddNamedPort(std::string name, SharedPtr<ClientPort> port); |
| 82 | 71 | ||