Skip to main content

Module threading

Module threading 

Source
Expand description

Process-wide parallel execution policy.

PiP uses the current Rayon pool and never creates or owns one. Applications should configure their Rayon pool to avoid oversubscription, then normally call set_max_threads once near program startup. None leaves each PiP method uncapped; Some(n) limits the jobs a single method can schedule.

Enums§

ParallelismError
Invalid process-wide parallel execution policy.

Functions§

max_threads
Returns the current process-wide PiP method cap.
set_max_threads
Sets the maximum threads one PiP method may use.