summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/readable_event.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-06 19:42:46 +0100
committerGitHub <noreply@github.com>2018-12-06 19:42:46 +0100
commit8de6403a080bf2f95e80c1b59e0afd2d133d924b (patch)
tree71004abe8be26a7ebd6a5806089e96ded2f9525e /src/core/hle/kernel/readable_event.h
parentMerge pull request #1824 from ReinUsesLisp/fbcache (diff)
parentkernel/svc: Correct behavior of svcResetSignal() (diff)
downloadyuzu-8de6403a080bf2f95e80c1b59e0afd2d133d924b.tar
yuzu-8de6403a080bf2f95e80c1b59e0afd2d133d924b.tar.gz
yuzu-8de6403a080bf2f95e80c1b59e0afd2d133d924b.tar.bz2
yuzu-8de6403a080bf2f95e80c1b59e0afd2d133d924b.tar.lz
yuzu-8de6403a080bf2f95e80c1b59e0afd2d133d924b.tar.xz
yuzu-8de6403a080bf2f95e80c1b59e0afd2d133d924b.tar.zst
yuzu-8de6403a080bf2f95e80c1b59e0afd2d133d924b.zip
Diffstat (limited to 'src/core/hle/kernel/readable_event.h')
-rw-r--r--src/core/hle/kernel/readable_event.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/readable_event.h b/src/core/hle/kernel/readable_event.h
index 867ff3051..80b3b0aba 100644
--- a/src/core/hle/kernel/readable_event.h
+++ b/src/core/hle/kernel/readable_event.h
@@ -7,6 +7,8 @@
#include "core/hle/kernel/object.h"
#include "core/hle/kernel/wait_object.h"
+union ResultCode;
+
namespace Kernel {
class KernelCore;
@@ -39,8 +41,17 @@ public:
void WakeupAllWaitingThreads() override;
+ /// Unconditionally clears the readable event's state.
void Clear();
+ /// Clears the readable event's state if and only if it
+ /// has already been signaled.
+ ///
+ /// @pre The event must be in a signaled state. If this event
+ /// is in an unsignaled state and this function is called,
+ /// then ERR_INVALID_STATE will be returned.
+ ResultCode Reset();
+
private:
explicit ReadableEvent(KernelCore& kernel);