mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 10:35:50 +00:00
Fix build issue on M1 macs
This commit is contained in:
@@ -34,8 +34,10 @@
|
|||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
#ifndef __aarch64__
|
||||||
// This is used for the _mm_pause instruction:
|
// This is used for the _mm_pause instruction:
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace ripple {
|
namespace ripple {
|
||||||
|
|
||||||
@@ -100,7 +102,9 @@ public:
|
|||||||
if (try_lock())
|
if (try_lock())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifndef __aarch64__
|
||||||
_mm_pause();
|
_mm_pause();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
|
|||||||
Reference in New Issue
Block a user