devela::_dep::rayon

Function max_num_threads

pub fn max_num_threads() -> usize 
Available on crate feature dep_rayon only.
Expand description

Returns the maximum number of threads that Rayon supports in a single thread-pool.

If a higher thread count is requested by calling ThreadPoolBuilder::num_threads or by setting the RAYON_NUM_THREADS environment variable, then it will be reduced to this maximum.

The value may vary between different targets, and is subject to change in new Rayon versions.