summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-11-03 10:25:41 +0100
committerbunnei <bunneidev@gmail.com>2019-11-03 10:25:41 +0100
commitece5287843403da0bdaeccef872f771fac61967a (patch)
treeadd42c953729bec50fe1b31c5d518ffca5615e2e /src
parentkernel: events: Remove ResetType::Automatic. (diff)
downloadyuzu-ece5287843403da0bdaeccef872f771fac61967a.tar
yuzu-ece5287843403da0bdaeccef872f771fac61967a.tar.gz
yuzu-ece5287843403da0bdaeccef872f771fac61967a.tar.bz2
yuzu-ece5287843403da0bdaeccef872f771fac61967a.tar.lz
yuzu-ece5287843403da0bdaeccef872f771fac61967a.tar.xz
yuzu-ece5287843403da0bdaeccef872f771fac61967a.tar.zst
yuzu-ece5287843403da0bdaeccef872f771fac61967a.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/readable_event.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/kernel/readable_event.cpp b/src/core/hle/kernel/readable_event.cpp
index 7c291b426..d8ac97aa1 100644
--- a/src/core/hle/kernel/readable_event.cpp
+++ b/src/core/hle/kernel/readable_event.cpp
@@ -23,8 +23,10 @@ void ReadableEvent::Acquire(Thread* thread) {
}
void ReadableEvent::Signal() {
- signaled = true;
- WakeupAllWaitingThreads();
+ if (!signaled) {
+ signaled = true;
+ WakeupAllWaitingThreads();
+ };
}
void ReadableEvent::Clear() {