Remove '#' from threadpool thread names

This commit is contained in:
Nikita Lisitsa 2022-08-07 11:41:37 +03:00
parent f3253b1e4a
commit 512ec6df93

View file

@ -20,7 +20,7 @@ namespace psemek::async
{ {
for (std::size_t th = 0; th < thread_count; ++th) 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 threads_.emplace_back([this, tname = std::move(tname)]() mutable
{ {
log::thread_registrator reg(std::move(tname)); log::thread_registrator reg(std::move(tname));