projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Align registry data on cache line size
[urcu.git]
/
urcu-static.h
diff --git
a/urcu-static.h
b/urcu-static.h
index f2a463c47ab9dd03eff61c84d90c6c0d5edf6f3b..3b7ea3217bb58029e06f2e4ac67be6aad648e9c6 100644
(file)
--- a/
urcu-static.h
+++ b/
urcu-static.h
@@
-220,10
+220,12
@@
static inline void reader_barrier()
extern long urcu_gp_ctr;
struct urcu_reader {
extern long urcu_gp_ctr;
struct urcu_reader {
+ /* Data used by both reader and synchronize_rcu() */
long ctr;
long ctr;
- struct list_head head;
- pthread_t tid;
char need_mb;
char need_mb;
+ /* Data used for registry */
+ struct list_head head __attribute__((aligned(CACHE_LINE_SIZE)));
+ pthread_t tid;
};
extern struct urcu_reader __thread urcu_reader;
};
extern struct urcu_reader __thread urcu_reader;
This page took
0.023023 seconds
and
4
git commands to generate.