Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 569e0d0 commit 5cb15ddCopy full SHA for 5cb15dd
Disruptor/BuildConfig.h
@@ -32,7 +32,13 @@
32
33
# define DISRUPTOR_CPP_11
34
35
-# if __x86_64__ || __ppc64__
+# if __arm__
36
+# define DISRUPTOR_CPU_ARM
37
+# define DISRUPTOR_CPU_ARM_32
38
+# #elif __aarch64__
39
40
+# define DISRUPTOR_CPU_ARM_64
41
+# elif __x86_64__ || __ppc64__
42
# define DISRUPTOR_CPU_64
43
# else
44
# define DISRUPTOR_CPU_32
Disruptor/SpinWait.cpp
@@ -118,11 +118,18 @@ namespace Disruptor
118
119
#elif defined(DISRUPTOR_GNUC_COMPILER)
120
121
+#if defined(DISRUPTOR_CPU_ARM)
122
asm volatile
- (
123
- "rep\n"
124
- "nop"
125
- );
+ (
+ "yield"
+ );
126
+#else
127
+ asm volatile
128
129
+ "rep\n"
130
+ "nop"
131
132
+#endif
133
134
#else
135
0 commit comments