X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Frcutorture.h;h=053653faca37a0b3be9f649c3cf7728da4c61400;hb=fcb81146d096d63d39adde4f790465a5c52999bb;hp=bf20e56c8c0763541b1a95a169e68ca046db2493;hpb=d5469bf4c08169f8b2d8dc136c8c350528041271;p=urcu.git diff --git a/tests/regression/rcutorture.h b/tests/regression/rcutorture.h index bf20e56..053653f 100644 --- a/tests/regression/rcutorture.h +++ b/tests/regression/rcutorture.h @@ -368,6 +368,9 @@ void *rcu_update_stress_test(void *arg) struct rcu_stress *p; struct rcu_head rh; + rcu_register_thread(); + rcu_thread_offline(); + while (goflag == GOFLAG_INIT) (void) poll(NULL, 0, 1); while (goflag == GOFLAG_RUN) { @@ -415,6 +418,9 @@ void *rcu_update_stress_test(void *arg) } n_updates++; } + + rcu_thread_online(); + rcu_unregister_thread(); return NULL; }