Skip to content

Commit 2dcecf6

Browse files
committed
Set ThreadName for JobSystem worker threads to "JobWorker XX"
1 parent 98c2e94 commit 2dcecf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

renderdoc/common/jobsystem.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
******************************************************************************/
2424

2525
#include <math.h>
26+
#include "formatting.h"
2627
#include "threading.h"
2728

2829
namespace Threading
@@ -215,6 +216,7 @@ bool RunJobIfReady(Threading::JobSystem::Job *curJob)
215216

216217
void WorkerThread(JobWorker &worker)
217218
{
219+
Threading::SetCurrentThreadName(StringFormat::Fmt("JobWorker %02u", (uint32_t)worker.idx));
218220
// outer loop until shutdown
219221
while(true)
220222
{

0 commit comments

Comments
 (0)