forked from suyu/suyu
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
1 changed files with 6 additions and 4 deletions
|
@ -24,10 +24,12 @@ void ReadableEvent::Acquire(Thread* thread) {
|
|||
}
|
||||
|
||||
void ReadableEvent::Signal() {
|
||||
if (!is_signaled) {
|
||||
if (is_signaled) {
|
||||
return;
|
||||
}
|
||||
|
||||
is_signaled = true;
|
||||
SynchronizationObject::Signal();
|
||||
};
|
||||
}
|
||||
|
||||
void ReadableEvent::Clear() {
|
||||
|
|
Loading…
Reference in a new issue