summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-03 05:38:36 +0200
committerGitHub <noreply@github.com>2020-05-03 05:38:36 +0200
commit8db4feb5b46e8ff6b4e81270d162a8f9a13ff935 (patch)
treea601cb17a3677a5a166610bb7c63a0023e885e5e /src/core
parentMerge pull request #3824 from ogniK5377/GetDisplayVersion (diff)
parentreadable_event: Remove unnecessary semicolon in Signal() (diff)
downloadyuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar
yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar.gz
yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar.bz2
yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar.lz
yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar.xz
yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.tar.zst
yuzu-8db4feb5b46e8ff6b4e81270d162a8f9a13ff935.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/readable_event.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/kernel/readable_event.cpp b/src/core/hle/kernel/readable_event.cpp
index e2a404d07..00860fcbd 100644
--- a/src/core/hle/kernel/readable_event.cpp
+++ b/src/core/hle/kernel/readable_event.cpp
@@ -24,10 +24,12 @@ void ReadableEvent::Acquire(Thread* thread) {
}
void ReadableEvent::Signal() {
- if (!is_signaled) {
- is_signaled = true;
- SynchronizationObject::Signal();
- };
+ if (is_signaled) {
+ return;
+ }
+
+ is_signaled = true;
+ SynchronizationObject::Signal();
}
void ReadableEvent::Clear() {