Struct rayon::Configuration
[−]
[src]
pub struct Configuration { // some fields omitted }
Contains the rayon thread pool configuration.
Methods
impl Configuration
fn new() -> Configuration
Creates and return a valid rayon thread pool configuration, but does not initialize it.
fn num_threads(&self) -> Option<usize>
Get the number of threads that will be used for the thread
pool. See set_num_threads
for more information.
fn set_num_threads(self, num_threads: usize) -> Configuration
Set the number of threads to be used in the rayon threadpool.
The argument num_threads
must not be zero. If you do not
call this function, rayon will select a suitable default
(currently, the default is one thread per CPU core).