projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update Makefile.am
[urcu.git]
/
tests
/
test_qsbr_timing.c
diff --git
a/tests/test_qsbr_timing.c
b/tests/test_qsbr_timing.c
index 3585f83470a9ed28120312dd3d4c5fb8e4293b62..969b802106da801750f39a5e02b1ab05c74c3348 100644
(file)
--- a/
tests/test_qsbr_timing.c
+++ b/
tests/test_qsbr_timing.c
@@
-32,9
+32,6
@@
#include <sys/syscall.h>
#include <urcu/arch.h>
#include <sys/syscall.h>
#include <urcu/arch.h>
-/* Make this big enough to include the POWER5+ L3 cacheline size of 256B */
-#define CACHE_LINE_SIZE 4096
-
#if defined(_syscall0)
_syscall0(pid_t, gettid)
#elif defined(__NR_gettid)
#if defined(_syscall0)
_syscall0(pid_t, gettid)
#elif defined(__NR_gettid)
@@
-156,8
+153,9
@@
void *thr_writer(void *arg)
assert(old->a == 8);
}
new->a = 8;
assert(old->a == 8);
}
new->a = 8;
- old =
_rcu_publish_content
(&test_rcu_pointer, new);
+ old =
rcu_xchg_pointer
(&test_rcu_pointer, new);
rcu_copy_mutex_unlock();
rcu_copy_mutex_unlock();
+ synchronize_rcu();
/* can be done after unlock */
if (old) {
old->a = 0;
/* can be done after unlock */
if (old) {
old->a = 0;
This page took
0.022936 seconds
and
4
git commands to generate.