Skip to content

Commit 9157c64

Browse files
committed
Back off busy loop added to non X86 architecture. Slighty faster on MacOS/M3
1 parent 2784f53 commit 9157c64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/concurrent.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ limitations under the License.
5959
#elif _MSC_VER
6060
#define CPU_PAUSE() _mm_pause()
6161
#else
62-
#define CPU_PAUSE()
62+
#define CPU_PAUSE() std::this_thread::yield();
6363
#endif
6464
#else
65-
#define CPU_PAUSE()
65+
#define CPU_PAUSE() std::this_thread::yield();
6666
#endif
6767

6868

0 commit comments

Comments
 (0)