From f40da0638bddd32493b43ed061603c91482fe98a Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 23 May 2026 20:12:13 +0000 Subject: [PATCH] fxfxfxfxfx --- src/common/thread.cpp | 4 ++-- src/core/core_timing.cpp | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common/thread.cpp b/src/common/thread.cpp index d76842181d..29ee69c145 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -200,8 +200,8 @@ bool Event::WaitFor(const std::chrono::nanoseconds& time) { #ifdef _WIN32 while (!IsSet() && _rdtsc() < target_tsc) Common::Windows::SleepForOneTick(); - if (event.IsSet()) - event.Reset(); + if (IsSet()) + Reset(); return true; #else std::unique_lock lk{mutex}; diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 0c1a755d72..7fccada29f 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -63,8 +63,6 @@ void CoreTiming::Initialize(std::function&& on_thread_init_) { has_started = true; // base frequency in MHz: 1ns (10^-9) = 1GHz (10^9) - auto const& caps = Common::GetCPUCaps(); - [[maybe_unused]] u64 ns_scale = caps.base_frequency / 1'000; while (!stop_token.stop_requested()) { while (!paused && !stop_token.stop_requested()) { paused_set = false;