wait, i am myself

This commit is contained in:
lizzie 2026-05-23 10:43:52 +00:00
parent 19f414b775
commit 1197ff3cd2

View file

@ -217,8 +217,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};