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:
Lioncash 2020-05-02 14:07:29 -04:00
parent 30bd77c6e7
commit aabf5b2059

View File

@ -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() {