projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add test for rcu_assign_pointer()
[urcu.git]
/
urcu-qsbr-static.h
diff --git
a/urcu-qsbr-static.h
b/urcu-qsbr-static.h
index 1cac56cb8a561ae509f1f4722a7c94504b914b48..d53a1f4919569e5ada46b6fd3ff83bc8bded341f 100644
(file)
--- a/
urcu-qsbr-static.h
+++ b/
urcu-qsbr-static.h
@@
-38,6
+38,7
@@
#include <urcu/compiler.h>
#include <urcu/arch.h>
#include <urcu/compiler.h>
#include <urcu/arch.h>
+#include <urcu/arch_uatomic.h>
#include <urcu/list.h>
/*
#include <urcu/list.h>
/*
@@
-184,8
+185,10
@@
static inline void reader_barrier()
extern unsigned long urcu_gp_ctr;
struct urcu_reader {
extern unsigned long urcu_gp_ctr;
struct urcu_reader {
+ /* Data used by both reader and synchronize_rcu() */
unsigned long ctr;
unsigned long ctr;
- struct list_head head;
+ /* Data used for registry */
+ struct list_head head __attribute__((aligned(CACHE_LINE_SIZE)));
pthread_t tid;
};
pthread_t tid;
};
This page took
0.022135 seconds
and
4
git commands to generate.