X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fregression%2Frcutorture.h;h=053653faca37a0b3be9f649c3cf7728da4c61400;hp=7de182f5db4025ad87effd3184c8b0d10bfdce55;hb=a13ef613168a4f5f35ca820750fedf13c403ce98;hpb=26b5a74b238dae64c7ad68c04e44159b8ebe9bbb diff --git a/tests/regression/rcutorture.h b/tests/regression/rcutorture.h index 7de182f..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; } @@ -531,7 +537,7 @@ int main(int argc, char *argv[]) goto end; } } - + switch (callrcu_type) { case CALLRCU_GLOBAL: diag("Using global per-process call_rcu thread.");