From ecf6bfbbdfc51293c9fd2bf27fd5d179c5b7ee96 Mon Sep 17 00:00:00 2001 From: "chss95cs@gmail.com" Date: Sun, 9 Oct 2022 12:30:18 -0700 Subject: [PATCH] Stub event query for linux, fix missing semicolon in linux SetEventBoostPriority --- src/xenia/base/threading.h | 2 +- src/xenia/base/threading_posix.cc | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xenia/base/threading.h b/src/xenia/base/threading.h index 1be26b373..9e80f29ad 100644 --- a/src/xenia/base/threading.h +++ b/src/xenia/base/threading.h @@ -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 }; diff --git a/src/xenia/base/threading_posix.cc b/src/xenia/base/threading_posix.cc index 13914bd2a..604e332d5 100644 --- a/src/xenia/base/threading_posix.cc +++ b/src/xenia/base/threading_posix.cc @@ -905,6 +905,11 @@ class PosixEvent : public PosixConditionHandle { ~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();