projects
/
urcu.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
[urcu.git]
/
tests
/
test_urcu.c
diff --git
a/tests/test_urcu.c
b/tests/test_urcu.c
index 3c5c49256b757a244296dddc6053857c441a15b8..5059ddeac51648b5f901cdb5c3a1483aac7a1480 100644
(file)
--- a/
tests/test_urcu.c
+++ b/
tests/test_urcu.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.022269 seconds
and
4
git commands to generate.