X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Ftest_urcu_bp.c;h=6f8c59d67500d548a8ffec10f0272ff5a1ed8f51;hp=1bf62bddfc6d885be585c1be681368035738113d;hb=014775106c60f02818ca755b331f887030bd440f;hpb=2a27e9319bacc9bc98f38afb7e4f050601ab979b diff --git a/tests/benchmark/test_urcu_bp.c b/tests/benchmark/test_urcu_bp.c index 1bf62bd..6f8c59d 100644 --- a/tests/benchmark/test_urcu_bp.c +++ b/tests/benchmark/test_urcu_bp.c @@ -28,10 +28,10 @@ #include #include #include -#include #include #include +#include #include #include "thread-id.h" #include "../common/debug-yield.h" @@ -140,7 +140,7 @@ void *thr_reader(void *_count) set_affinity(); rcu_register_thread(); - assert(!rcu_read_ongoing()); + urcu_posix_assert(!rcu_read_ongoing()); while (!test_go) { @@ -149,11 +149,11 @@ void *thr_reader(void *_count) for (;;) { rcu_read_lock(); - assert(rcu_read_ongoing()); + urcu_posix_assert(rcu_read_ongoing()); local_ptr = rcu_dereference(test_rcu_pointer); rcu_debug_yield_read(); if (local_ptr) - assert(*local_ptr == 8); + urcu_posix_assert(*local_ptr == 8); if (caa_unlikely(rduration)) loop_sleep(rduration); rcu_read_unlock();