X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest_urcu.c;h=5059ddeac51648b5f901cdb5c3a1483aac7a1480;hb=d89f0c51ed502c4248211eb43292e92a98ffe31b;hp=3c5c49256b757a244296dddc6053857c441a15b8;hpb=2953b501ab1dcf908d07de9b414a08397519f5b6;p=userspace-rcu.git diff --git a/tests/test_urcu.c b/tests/test_urcu.c index 3c5c492..5059dde 100644 --- 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)