configure_thread_pool

Function configure_thread_pool 

Source
pub fn configure_thread_pool(threads: isize) -> Result<(), Error>
Expand description

Configure the global rayon thread pool based on the threads argument

  • -1: Use all available CPU cores (default rayon behavior)
  • 1: Single-threaded execution
  • > 1: Use specified number of threads
  • 0: Invalid returns error