Add rcu_read_ongoing() API to each urcu flavor
[urcu.git] / tests / test_urcu_qsbr.c
index 065557a1307d8f3cfe22a6c8ea6b6a39a0b3603e..f98e2735ef2004b911a78b1def6da07c694ca028 100644 (file)
@@ -187,6 +187,11 @@ void *thr_reader(void *_count)
 
        rcu_register_thread();
 
+       assert(rcu_read_ongoing());
+       rcu_thread_offline();
+       assert(!rcu_read_ongoing());
+       rcu_thread_online();
+
        while (!test_go)
        {
        }
@@ -194,6 +199,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.022467 seconds and 4 git commands to generate.