mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-27 08:37:07 +02:00
fxfxfxfxfx
This commit is contained in:
parent
04a2168041
commit
bb4e264fc4
2 changed files with 2 additions and 4 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue