You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this would be useful for code that needs a known number of threads before entering the parallel region, though im not sure how feasible it is to implement in rayon
example user code could look like this
rayon::broadcast_idle(|num_threads, broadcast| {let barrier = std::sync::Barrier::new(num_threads);
broadcast.run(|ctx| {// run task on each thread// synchronize
barrier.wait();});});
The text was updated successfully, but these errors were encountered:
this would be useful for code that needs a known number of threads before entering the parallel region, though im not sure how feasible it is to implement in rayon
example user code could look like this
The text was updated successfully, but these errors were encountered: