Merge pull request #82 from chrisps/canary_experimental

Fix missing semicolon
This commit is contained in:
chrisps 2022-10-09 14:07:43 -07:00 committed by GitHub
commit 28b565c0c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -308,7 +308,7 @@ class Event : public WaitHandle {
//SetEvent, but if there is a waiter we immediately transfer execution to it
virtual void SetBoostPriority() = 0;
#else
void SetBoostPriority() { Set() }
void SetBoostPriority() { Set(); }
#endif
};

View File

@ -905,6 +905,11 @@ class PosixEvent : public PosixConditionHandle<Event> {
~PosixEvent() override = default;
void Set() override { handle_.Signal(); }
void Reset() override { handle_.Reset(); }
EventInfo Query() {
EventInfo result{};
assert_always();
return result;
}
void Pulse() override {
using namespace std::chrono_literals;
handle_.Signal();