Function rayon_core::max_num_threads
source · pub fn max_num_threads() -> usize
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.