rcutorture: make goflag volatile
[urcu.git] / tests / rcutorture.h
index c5253d9cfead570db75313d237cd28b12b42e704..5ba3d2b0e85312318a3e849a1d98c6050faedbf4 100644 (file)
@@ -79,7 +79,8 @@ char argsbuf[64];
 #define GOFLAG_RUN  1
 #define GOFLAG_STOP 2
 
-int goflag __attribute__((__aligned__(CAA_CACHE_LINE_SIZE))) = GOFLAG_INIT;
+volatile int goflag __attribute__((__aligned__(CAA_CACHE_LINE_SIZE)))
+        = GOFLAG_INIT;
 
 #define RCU_READ_RUN 1000
 
This page took 0.024633 seconds and 4 git commands to generate.