Browse Source

name global threads

Lennart Braun 1 year ago
parent
commit
25a01a9d0c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      oram/examples/bench_doram.rs

+ 5 - 0
oram/examples/bench_doram.rs

@@ -157,6 +157,11 @@ fn main() {
         cli.threads_online as usize
     };
 
+    rayon::ThreadPoolBuilder::new()
+        .thread_name(|i| format!("thread-global-{i}"))
+        .build_global()
+        .unwrap();
+
     for c in cli.connect.iter() {
         if netopts.connect_info[c.0] != NetworkPartyInfo::Listen {
             println!(