diff options
| author | rezural <rezural@protonmail.com> | 2020-12-24 21:24:04 +1100 |
|---|---|---|
| committer | rezural <rezural@protonmail.com> | 2020-12-24 21:24:04 +1100 |
| commit | 70d05cc63f24945d5d59c6e14aa6f36c36304a84 (patch) | |
| tree | e5ebcbd5495b51b6c5d701da6b63e9db16a14f8c /src_testbed | |
| parent | 5ffacf0a14cda067c7e362e33303bcde8b76e68e (diff) | |
| download | rapier-70d05cc63f24945d5d59c6e14aa6f36c36304a84.tar.gz rapier-70d05cc63f24945d5d59c6e14aa6f36c36304a84.tar.bz2 rapier-70d05cc63f24945d5d59c6e14aa6f36c36304a84.zip | |
fix typo with creating threadpool in RunState
Diffstat (limited to 'src_testbed')
| -rw-r--r-- | src_testbed/harness/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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, } |
