mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-28 04:07:03 +02:00
fix arm64
This commit is contained in:
parent
3ea510550a
commit
c9ced93936
3 changed files with 7 additions and 1 deletions
|
|
@ -216,6 +216,11 @@ bool Event::WaitFor(const std::chrono::nanoseconds time) {
|
|||
if (is_set.load())
|
||||
Reset();
|
||||
return true;
|
||||
#elif defined(__FreeBSD__)
|
||||
while (!is_set.load() && end > _rdtsc())
|
||||
_mm_pause();
|
||||
bool expected = true;
|
||||
return is_set.compare_exchange_weak(expected, false, std::memory_order_release);
|
||||
#else
|
||||
std::unique_lock lk{mutex};
|
||||
if (!condvar.wait_for(lk, time, [this] { return is_set.load(); }))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue