diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 61eaa43998..3e18a947b5 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -205,7 +205,7 @@ bool Event::WaitFor(const std::chrono::nanoseconds time) { // #UD If CPUID.7.0:ECX.WAITPKG[bit 5]=0. while (true) { _umonitor(std::addressof(is_set)); - if (!is_set.load() && !_umwait(1, end)) //umwait is absolute time!!! + if (!is_set.load() && !_umwait(0, end)) //umwait is absolute time!!! return false; bool expected = true; if (is_set.compare_exchange_weak(expected, false, std::memory_order_release))