X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Frcutorture.h;fp=tests%2Fregression%2Frcutorture.h;h=6539a573d1d4536745f7eefb3d4feca80c15e807;hb=5e92ab6295afc1c46500867c8911975b180561a1;hp=f8548d811ed8980061716cc797a63524d97524a4;hpb=6303a62a6f1d8879b64986328a6c4d051c919b77;p=urcu.git diff --git a/tests/regression/rcutorture.h b/tests/regression/rcutorture.h index f8548d8..6539a57 100644 --- a/tests/regression/rcutorture.h +++ b/tests/regression/rcutorture.h @@ -344,6 +344,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) poll(NULL, 0, 1); while (goflag == GOFLAG_RUN) { @@ -380,6 +383,9 @@ void *rcu_update_stress_test(void *arg) } n_updates++; } + + rcu_thread_online(); + rcu_unregister_thread(); return NULL; }