/// A barrier to ensure all threads start at exactly the same time,
/// every run() should call context.wait_for_start() right after initialization or it will block forever.
A barrier to ensure all threads start at exactly the same time,
every run() should call context.wait_for_start() right after initialization or it will block forever.
A barrier to ensure all threads start at exactly the same time every run () should call context . wait_for_start () right after initialization or it will block forever .
pub fn wait_for_start(&self) {
        self.ready_thread.fetch_add(1, Ordering::Relaxed);
        while !self.is_running() {
            std::hint::spin_loop();
        }
    }
pub fn wait_for_start ( & self ) { self . ready_thread . fetch_add ( 1 , Ordering :: Relaxed ) ; while ! self . is_running ( ) { std :: hint :: spin_loop ( ) ; } }
A barrier to ensure all threads start at exactly the same time,
every run() should call context.wait_for_start() right after initialization or it will block forever.
A barrier to ensure all threads start at exactly the same time every run () should call context . wait_for_start () right after initialization or it will block forever .
&self