Skip to main content

slot_pin_target

Function slot_pin_target 

Source
fn slot_pin_target(slot: usize, set: &CoreSet) -> PinTarget
Expand description

The pin policy for spawn slot slot of a resolved set. Current behavior, unchanged since the feature landed: EVERY runtime-spawned thread — worker or blocking-pool, both run the start hook — takes cores[slot % len] from a process-global spawn counter. Worker slots 0..len land 1:1 on distinct cores; blocking threads take later slots, which wrap onto worker cores (permanent worker/scan-thread pairing — see the module docs for the open policy question).