Allow choosing logical cores for num threads config

This commit is contained in:
Lukas Wirth 2024-06-09 12:04:28 +02:00
parent 913371fb0b
commit e972dd2385
3 changed files with 43 additions and 9 deletions

View file

@ -284,7 +284,7 @@ impl Analysis {
})
}
pub fn parallel_prime_caches<F>(&self, num_worker_threads: u8, cb: F) -> Cancellable<()>
pub fn parallel_prime_caches<F>(&self, num_worker_threads: usize, cb: F) -> Cancellable<()>
where
F: Fn(ParallelPrimeCachesProgress) + Sync + std::panic::UnwindSafe,
{