Fix build issue on M1 macs

This commit is contained in:
greg7mdp
2022-04-06 15:17:47 -04:00
committed by manojsdoshi
parent 9d3cd718e4
commit 525aaecbca

View File

@@ -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();