slower wakeup more powersave

This commit is contained in:
lizzie 2026-05-26 05:55:20 +00:00
parent dd97ebcd1d
commit e5d3b21089

View file

@ -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))