Skip to content

Commit

Permalink
Add names to threads in parallel executor's thread pool. (aptos-labs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
grao1991 authored Jul 6, 2022
1 parent 8fd211a commit 7cf1afb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aptos-move/parallel-executor/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use std::{
static RAYON_EXEC_POOL: Lazy<rayon::ThreadPool> = Lazy::new(|| {
rayon::ThreadPoolBuilder::new()
.num_threads(num_cpus::get())
.thread_name(|index| format!("parallel_executor_{}", index))
.build()
.unwrap()
});
Expand Down

0 comments on commit 7cf1afb

Please sign in to comment.