Skip to content

Commit 0983568

Browse files
ThreadPool: fix thread naming
1 parent b102e09 commit 0983568

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Common/src/ThreadPool.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ class ThreadPoolImpl final : public ObjectBase<IThreadPool>
5555
m_WorkerThreads.reserve(PoolCI.NumThreads);
5656
for (Uint32 i = 0; i < PoolCI.NumThreads; ++i)
5757
{
58-
std::string ThreadName = "Diligent::ThreadPool Worker " + std::to_string(i);
59-
PlatformMisc::SetCurrentThreadName(ThreadName.c_str());
60-
6158
m_WorkerThreads.emplace_back(
6259
[this, PoolCI, i] //
6360
{
61+
const std::string ThreadName = "DG:TPW " + std::to_string(i);
62+
PlatformMisc::SetCurrentThreadName(ThreadName.c_str());
63+
6464
if (PoolCI.OnThreadStarted)
6565
PoolCI.OnThreadStarted(i);
6666

0 commit comments

Comments
 (0)