Function polyester::set_thread_count [] [src]

pub fn set_thread_count(count: usize)

Sets the number of threads started by the Polyester adaptors.

This sets an atomic counter accessed by the Polyester adaptors to calculate how many worker threads to start. Note that one extra thread will always be spawned, to handle the iterator item dispatch.

If this is set to zero (or never set in the first place), the adapters will spawn as many threads as the number of cores on the current system.