Function style::parallel::distribute_work
source ยท fn distribute_work<'a, 'scope, E, D>(
items: impl Iterator<Item = SendNode<E::ConcreteNode>>,
traversal_root: OpaqueNode,
work_unit_max: usize,
traversal_data: PerLevelTraversalData,
scope: &'a ScopeFifo<'scope>,
traversal: &'scope D,
tls: &'scope ScopedTLS<'scope, ThreadLocalStyleContext<E>>,
)where
E: TElement + 'scope,
D: DomTraversal<E>,
Expand description
Distributes all items into the thread pool, in work_unit_max
chunks.