projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test cases: add multiple register/unregister tests
[urcu.git]
/
tests
/
test_qsbr_timing.c
diff --git
a/tests/test_qsbr_timing.c
b/tests/test_qsbr_timing.c
index bbe983e8da53efba99733c94deb59466157f72b6..b9cfd79382c8848b130644a4c5c776d4612975d3 100644
(file)
--- a/
tests/test_qsbr_timing.c
+++ b/
tests/test_qsbr_timing.c
@@
-30,6
+30,8
@@
#include <stdio.h>
#include <assert.h>
#include <sys/syscall.h>
#include <stdio.h>
#include <assert.h>
#include <sys/syscall.h>
+#include <errno.h>
+
#include <urcu/arch.h>
#if defined(_syscall0)
#include <urcu/arch.h>
#if defined(_syscall0)
@@
-153,8
+155,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.024143 seconds
and
4
git commands to generate.