Make folly::detail::CacheLocality portable on apple
[folly.git] / folly / detail / TurnSequencer.h
index 9fdb5b1d7969f186e0c4783e47bf759e2fc1e6d0..c3dd4a43e0342f22c04d4f6af77c1f62d33a968d 100644 (file)
@@ -124,9 +124,7 @@ struct TurnSequencer {
       // the first effectSpinCutoff tries are spins, after that we will
       // record ourself as a waiter and block with futexWait
       if (tries < effectiveSpinCutoff) {
-#if defined(__i386__) || FOLLY_X64
-        asm volatile ("pause");
-#endif
+        asm_volatile_pause();
         continue;
       }