X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu-qsbr-static.h;h=d53a1f4919569e5ada46b6fd3ff83bc8bded341f;hb=5e32821aa6d74b755730c19a8aa66404d2c367c9;hp=1cac56cb8a561ae509f1f4722a7c94504b914b48;hpb=4f8e33808fdc08d3182a656d509fe42487d19b86;p=urcu.git diff --git a/urcu-qsbr-static.h b/urcu-qsbr-static.h index 1cac56c..d53a1f4 100644 --- a/urcu-qsbr-static.h +++ b/urcu-qsbr-static.h @@ -38,6 +38,7 @@ #include #include +#include #include /* @@ -184,8 +185,10 @@ static inline void reader_barrier() extern unsigned long urcu_gp_ctr; struct urcu_reader { + /* Data used by both reader and synchronize_rcu() */ unsigned long ctr; - struct list_head head; + /* Data used for registry */ + struct list_head head __attribute__((aligned(CACHE_LINE_SIZE))); pthread_t tid; };