X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fregression%2Frcutorture.h;h=053653faca37a0b3be9f649c3cf7728da4c61400;hp=bf20e56c8c0763541b1a95a169e68ca046db2493;hb=a13ef613168a4f5f35ca820750fedf13c403ce98;hpb=d8a4979da2d86841c552798f2b9b2d535a28720d 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; }