projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
urcu-defer: remove call_rcu() API, replace by defer_rcu()
[urcu.git]
/
tests
/
test_urcu.c
diff --git
a/tests/test_urcu.c
b/tests/test_urcu.c
index 3b838c147e2b8ca3ddf866c6218937ac5c8ba2bb..2f8cd163ee7ac7a7ac284b9d31bec7d97905e1bc 100644
(file)
--- a/
tests/test_urcu.c
+++ b/
tests/test_urcu.c
@@
-32,6
+32,7
@@
#include <assert.h>
#include <sys/syscall.h>
#include <sched.h>
#include <assert.h>
#include <sys/syscall.h>
#include <sched.h>
+#include <errno.h>
#include <urcu/arch.h>
#include <urcu/arch.h>
@@
-256,7
+257,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();
if (old)
old->a = 0;
test_array_free(old);
if (old)
old->a = 0;
test_array_free(old);
This page took
0.023925 seconds
and
4
git commands to generate.