projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: remove rcu_publish_content dependency
[urcu.git]
/
tests
/
test_qsbr.c
diff --git
a/tests/test_qsbr.c
b/tests/test_qsbr.c
index 6230510ab39688d9ba8524e6aadc9bc721470883..d6c4d1aed017420666da1ad68562542f151b6d80 100644
(file)
--- a/
tests/test_qsbr.c
+++ b/
tests/test_qsbr.c
@@
-259,7
+259,8
@@
void *thr_writer(void *_count)
for (;;) {
new = test_array_alloc();
new->a = 8;
for (;;) {
new = test_array_alloc();
new->a = 8;
- old = rcu_publish_content(&test_rcu_pointer, new);
+ old = rcu_xchg_pointer(&test_rcu_pointer, new);
+ 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.022651 seconds
and
4
git commands to generate.