浏览代码

name global threads

Lennart Braun 2 年之前
父节点
当前提交
25a01a9d0c
共有 1 个文件被更改,包括 5 次插入0 次删除
  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!(