projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Support for sys_futex autodetection
[urcu.git]
/
tests
/
test_urcu_bp.c
diff --git
a/tests/test_urcu_bp.c
b/tests/test_urcu_bp.c
index 89873324a3580badfdecfe5a1981ef799e13bca0..fca7ac5d75f7ea4167928b3b22d9fa72c71abda3 100644
(file)
--- a/
tests/test_urcu_bp.c
+++ b/
tests/test_urcu_bp.c
@@
-256,7
+256,8
@@
void *thr_writer(void *_count)
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();
if (old)
old->a = 0;
test_array_free(old);
This page took
0.023562 seconds
and
4
git commands to generate.