projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add rcu_read_ongoing() API to each urcu flavor
[userspace-rcu.git]
/
tests
/
test_urcu_bp.c
diff --git
a/tests/test_urcu_bp.c
b/tests/test_urcu_bp.c
index 8cb74ff560d7d6e40e452e6b0a3b3a097640db9d..1926fbb2de9e81bfcc53dc62aa5be8375fe6d5e1 100644
(file)
--- a/
tests/test_urcu_bp.c
+++ b/
tests/test_urcu_bp.c
@@
-187,6
+187,7
@@
void *thr_reader(void *_count)
set_affinity();
rcu_register_thread();
+ assert(!rcu_read_ongoing());
while (!test_go)
{
@@
-195,6
+196,7
@@
void *thr_reader(void *_count)
for (;;) {
rcu_read_lock();
+ assert(rcu_read_ongoing());
local_ptr = rcu_dereference(test_rcu_pointer);
rcu_debug_yield_read();
if (local_ptr)
This page took
0.024815 seconds
and
4
git commands to generate.