mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-26 23:57:03 +02:00
forgot 1 for umwait
This commit is contained in:
parent
42258ad2f8
commit
04a2168041
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,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 (!IsSet() && !_umwait(0, target_tsc))
|
||||
if (!IsSet() && !_umwait(1, target_tsc))
|
||||
return false;
|
||||
bool expected = true;
|
||||
if (is_set.compare_exchange_weak(expected, false, std::memory_order_release))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue