mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
readable_event: Remove unnecessary semicolon in Signal()
Resolves a -Wextra-semi warning. While we're at it, we can invert the branch to form a guard clause, unindenting all of the contained code.
This commit is contained in:
parent
30bd77c6e7
commit
aabf5b2059
|
@ -24,10 +24,12 @@ void ReadableEvent::Acquire(Thread* thread) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReadableEvent::Signal() {
|
void ReadableEvent::Signal() {
|
||||||
if (!is_signaled) {
|
if (is_signaled) {
|
||||||
is_signaled = true;
|
return;
|
||||||
SynchronizationObject::Signal();
|
}
|
||||||
};
|
|
||||||
|
is_signaled = true;
|
||||||
|
SynchronizationObject::Signal();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReadableEvent::Clear() {
|
void ReadableEvent::Clear() {
|
||||||
|
|
Loading…
Reference in a new issue