Minor decoder optimizations, kernel fixes, cpu backend fixes
This commit is contained in:
@@ -117,7 +117,7 @@ void set_name(const std::string_view name) {
|
||||
|
||||
// checked ntoskrnl, it does not modify delay, so we can place this as a
|
||||
// constant and avoid creating a stack variable
|
||||
static const LARGE_INTEGER sleepdelay0_for_maybeyield{0LL};
|
||||
static const LARGE_INTEGER sleepdelay0_for_maybeyield{{0LL}};
|
||||
|
||||
void MaybeYield() {
|
||||
#if 0
|
||||
@@ -314,7 +314,8 @@ class Win32Event : public Win32Handle<Event> {
|
||||
}
|
||||
#endif
|
||||
|
||||
EventInfo Query() { EventInfo result{};
|
||||
EventInfo Query() override {
|
||||
EventInfo result{};
|
||||
NtQueryEventPointer.invoke(handle_, 0, &result, sizeof(EventInfo), nullptr);
|
||||
return result;
|
||||
}
|
||||
@@ -429,7 +430,7 @@ class Win32Timer : public Win32Handle<Timer> {
|
||||
}
|
||||
bool SetRepeatingAt(GClock_::time_point due_time,
|
||||
std::chrono::milliseconds period,
|
||||
std::function<void()> opt_callback = nullptr) {
|
||||
std::function<void()> opt_callback = nullptr) override {
|
||||
return SetRepeatingAt(date::clock_cast<WClock_>(due_time), period,
|
||||
std::move(opt_callback));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user