Fix verbose_mode test
This one is easier to "fix", since we're in control of the rayon pool - just adding one extra thread to the default number to make sure we always can one root "spawn" call without stealing from the actual pool.
This commit is contained in:
parent
8c1c9e29d8
commit
0ff5d17b81
1 changed files with 1 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ fn verbose_mode() {
|
|||
#[cfg(feature = "rayon")]
|
||||
rayon::ThreadPoolBuilder::new()
|
||||
.start_handler(move |_| thread_init())
|
||||
.num_threads(rayon::current_num_threads() + 1)
|
||||
.build()
|
||||
.unwrap()
|
||||
.install(move || rayon::spawn(thread_exec));
|
||||
|
|
|
|||
Loading…
Reference in a new issue