projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update readme
[urcu.git]
/
tests
/
test_urcu_timing.c
diff --git
a/tests/test_urcu_timing.c
b/tests/test_urcu_timing.c
index 13c0993570817560b4e45809db9660bf0f09b074..79cd838f56084cd6aae287619206a42d777eab29 100644
(file)
--- a/
tests/test_urcu_timing.c
+++ b/
tests/test_urcu_timing.c
@@
-152,8
+152,9
@@
void *thr_writer(void *arg)
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();
+ synchronize_rcu();
/* can be done after unlock */
if (old) {
old->a = 0;
This page took
0.031317 seconds
and
4
git commands to generate.