Skip to main content

init_worker_pool

Function init_worker_pool 

Source
pub fn init_worker_pool(cores: Option<&[usize]>, width: usize)
Expand description

Install the process-wide pool with explicit core placement.

cores is the resolved serve core set (None for unpinned: workers inherit the process mask); width is the default thread count before POOL_THREADS_ENV overrides it. Idempotent: a repeated call keeps the first pool.