Fix crash on arm64 mac

This commit is contained in:
Wojtek Figat
2023-02-28 18:49:48 +01:00
parent 82a22b2a87
commit 6691aaca1e
2 changed files with 2 additions and 3 deletions

View File

@@ -44,11 +44,11 @@ public:
}
FORCE_INLINE static int32 AtomicRead(int32 volatile* dst)
{
return __atomic_load_n(dst, __ATOMIC_SEQ_CST);
return __atomic_load_n(dst, __ATOMIC_RELAXED);
}
FORCE_INLINE static int64 AtomicRead(int64 volatile* dst)
{
return __atomic_load_n(dst, __ATOMIC_SEQ_CST);
return __atomic_load_n(dst, __ATOMIC_RELAXED);
}
FORCE_INLINE static void AtomicStore(int32 volatile* dst, int32 value)
{