Fix: tests/rcutorture: Put thread offline on busy-wait
[urcu.git] / tests / regression / rcutorture.h
index 93fdf0cf373c6623dafec968b64257bb96a24bd6..f495cbd12259709721212a17b84a7e7744be905a 100644 (file)
@@ -405,7 +405,10 @@ void *rcu_update_stress_test(void *arg __attribute__((unused)))
 
                        call_rcu(&rh, rcu_update_stress_test_rcu);
 
+                       /* Offline for busy-wait. */
+                       put_thread_offline();
                        urcu_adaptative_busy_wait(&wait);
+                       put_thread_online();
                        break;
                }
                case WRITER_STATE_POLL_RCU:
This page took 0.022679 seconds and 4 git commands to generate.