Function rayon_core::broadcast::spawn_broadcast_in

source ยท
pub(crate) unsafe fn spawn_broadcast_in<OP>(op: OP, registry: &Arc<Registry>)
where OP: Fn(BroadcastContext<'_>) + Send + Sync + 'static,
Expand description

Execute op on every thread in the pool. It will be executed on each thread when they have nothing else to do locally, before they try to steal work from other threads. This function returns immediately after injecting the jobs.

Unsafe because registry must not yet have terminated.