Make codebase more CPU-agnostic + MacOS disclaimer (#559)

This commit is contained in:
Exzap 2022-12-07 00:48:24 +00:00 committed by GitHub
parent 445b0afa95
commit 2c81d240a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 416 additions and 272 deletions

View file

@ -19,7 +19,8 @@ public:
{
if (!m_lockBool.exchange(true, std::memory_order_acquire))
break;
while (m_lockBool.load(std::memory_order_relaxed)) _mm_pause();
while (m_lockBool.load(std::memory_order_relaxed))
_mm_pause();
}
}
@ -36,4 +37,4 @@ public:
private:
mutable std::atomic<bool> m_lockBool = false;
};
};