summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/readable_event.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-27 15:18:29 +0100
committerZach Hilman <zachhilman@gmail.com>2018-11-29 14:48:40 +0100
commita342bcc9b130e9bd78720e09e04c92dcac8840d0 (patch)
treedf1d16c2a71b121fc449b53fc931c6fac8ccf82a /src/core/hle/kernel/readable_event.h
parentcore: Port all current usages of Event to Readable/WritableEvent (diff)
downloadyuzu-a342bcc9b130e9bd78720e09e04c92dcac8840d0.tar
yuzu-a342bcc9b130e9bd78720e09e04c92dcac8840d0.tar.gz
yuzu-a342bcc9b130e9bd78720e09e04c92dcac8840d0.tar.bz2
yuzu-a342bcc9b130e9bd78720e09e04c92dcac8840d0.tar.lz
yuzu-a342bcc9b130e9bd78720e09e04c92dcac8840d0.tar.xz
yuzu-a342bcc9b130e9bd78720e09e04c92dcac8840d0.tar.zst
yuzu-a342bcc9b130e9bd78720e09e04c92dcac8840d0.zip
Diffstat (limited to 'src/core/hle/kernel/readable_event.h')
-rw-r--r--src/core/hle/kernel/readable_event.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/core/hle/kernel/readable_event.h b/src/core/hle/kernel/readable_event.h
index 020ef4ebc..b1f1f4871 100644
--- a/src/core/hle/kernel/readable_event.h
+++ b/src/core/hle/kernel/readable_event.h
@@ -25,6 +25,10 @@ public:
return name;
}
+ ResetType GetResetType() const {
+ return reset_type;
+ }
+
static const HandleType HANDLE_TYPE = HandleType::Event;
HandleType GetHandleType() const override {
return HANDLE_TYPE;
@@ -35,20 +39,15 @@ public:
void WakeupAllWaitingThreads() override;
- void AddWaitingThread(SharedPtr<Thread> thread) override;
- void RemoveWaitingThread(Thread* thread) override;
-
- void Signal();
void Clear();
- SharedPtr<WritableEvent> PromoteToWritable() const {
- return writable_event;
- }
-
private:
explicit ReadableEvent(KernelCore& kernel);
- SharedPtr<WritableEvent> writable_event; ///< WritableEvent associated with this ReadableEvent
+ void Signal();
+
+ ResetType reset_type;
+ bool signaled;
std::string name; ///< Name of event (optional)
};