浏览代码

Remove thread naming on thread pool

gingerBill 6 年之前
父节点
当前提交
6d614ef07c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/thread_pool.cpp

+ 2 - 0
src/thread_pool.cpp

@@ -52,11 +52,13 @@ void thread_pool_init(ThreadPool *pool, gbAllocator const &a, isize thread_count
 		gbThread *t = &pool->threads[i];
 		gb_thread_init(t);
 		t->user_index = i;
+		#if 0
 		if (pool->worker_prefix_len > 0) {
 			char worker_name[16] = {};
 			gb_snprintf(worker_name, gb_size_of(worker_name), "%.*s%u", pool->worker_prefix_len, pool->worker_prefix, cast(u16)i);
 			gb_thread_set_name(t, worker_name);
 		}
+		#endif
 	}
 }