From 512ec6df9365235540bb962f301166f6e9d8e32f Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 7 Aug 2022 11:41:37 +0300 Subject: [PATCH] Remove '#' from threadpool thread names --- libs/async/source/threadpool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/async/source/threadpool.cpp b/libs/async/source/threadpool.cpp index 6eab0d30..2b1d5a2f 100644 --- a/libs/async/source/threadpool.cpp +++ b/libs/async/source/threadpool.cpp @@ -20,7 +20,7 @@ namespace psemek::async { for (std::size_t th = 0; th < thread_count; ++th) { - std::string tname = thread_count == 1 ? name : util::to_string(name, '#', th); + std::string tname = thread_count == 1 ? name : util::to_string(name, th); threads_.emplace_back([this, tname = std::move(tname)]() mutable { log::thread_registrator reg(std::move(tname));