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_qsbr.c
diff --git
a/tests/test_urcu_qsbr.c
b/tests/test_urcu_qsbr.c
index 065557a1307d8f3cfe22a6c8ea6b6a39a0b3603e..f98e2735ef2004b911a78b1def6da07c694ca028 100644
(file)
--- a/
tests/test_urcu_qsbr.c
+++ b/
tests/test_urcu_qsbr.c
@@
-187,6
+187,11
@@
void *thr_reader(void *_count)
rcu_register_thread();
rcu_register_thread();
+ assert(rcu_read_ongoing());
+ rcu_thread_offline();
+ assert(!rcu_read_ongoing());
+ rcu_thread_online();
+
while (!test_go)
{
}
while (!test_go)
{
}
@@
-194,6
+199,7
@@
void *thr_reader(void *_count)
for (;;) {
rcu_read_lock();
for (;;) {
rcu_read_lock();
+ assert(rcu_read_ongoing());
local_ptr = rcu_dereference(test_rcu_pointer);
rcu_debug_yield_read();
if (local_ptr)
local_ptr = rcu_dereference(test_rcu_pointer);
rcu_debug_yield_read();
if (local_ptr)
This page took
0.022408 seconds
and
4
git commands to generate.