mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-27 12:57:03 +02:00
wait, i am myself
This commit is contained in:
parent
19f414b775
commit
1197ff3cd2
1 changed files with 2 additions and 2 deletions
|
|
@ -217,8 +217,8 @@ bool Event::WaitFor(const std::chrono::nanoseconds& time) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
while (!IsSet() && _rdtsc() < target_tsc)
|
while (!IsSet() && _rdtsc() < target_tsc)
|
||||||
Common::Windows::SleepForOneTick();
|
Common::Windows::SleepForOneTick();
|
||||||
if (event.IsSet())
|
if (IsSet())
|
||||||
event.Reset();
|
Reset();
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
std::unique_lock lk{mutex};
|
std::unique_lock lk{mutex};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue