Set ThreadName for JobSystem worker threads to "JobWorker XX"

This commit is contained in:
Jake Turner
2025-07-10 12:28:23 +01:00
parent 98c2e94385
commit 2dcecf689b
+2
View File
@@ -23,6 +23,7 @@
******************************************************************************/
#include <math.h>
#include "formatting.h"
#include "threading.h"
namespace Threading
@@ -215,6 +216,7 @@ bool RunJobIfReady(Threading::JobSystem::Job *curJob)
void WorkerThread(JobWorker &worker)
{
Threading::SetCurrentThreadName(StringFormat::Fmt("JobWorker %02u", (uint32_t)worker.idx));
// outer loop until shutdown
while(true)
{