Function rustitude_core::create_pool
source · pub fn create_pool(num_threads: usize) -> Result<ThreadPool, RustitudeError>Expand description
Creates a new thread pool.
This method uses rayon to create a thread pool with a given number of threads.
Arguments:
num_threads: Number of threads to use in the pool
§Errors
Will yield a errors::RustitudeError which forwards a rayon::ThreadPoolBuildError if
there is any issue creating the thread pool.