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