From 70d05cc63f24945d5d59c6e14aa6f36c36304a84 Mon Sep 17 00:00:00 2001 From: rezural Date: Thu, 24 Dec 2020 21:24:04 +1100 Subject: fix typo with creating threadpool in RunState --- src_testbed/harness/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src_testbed') diff --git a/src_testbed/harness/mod.rs b/src_testbed/harness/mod.rs index c6f682c..379a42c 100644 --- a/src_testbed/harness/mod.rs +++ b/src_testbed/harness/mod.rs @@ -18,7 +18,10 @@ impl RunState { pub fn new() -> Self { Self { #[cfg(feature = "parallel")] - thread_pool: rapier::rayon::ThreadPool, + thread_pool: rapier::rayon::ThreadPoolBuilder::new() + .num_threads(num_threads) + .build() + .unwrap(), timestep_id: 0, time: 0.0, } -- cgit