From 6704980693a6d8f040d217303742c81c8329f59b Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 11 Jun 2024 13:03:16 -0500 Subject: [PATCH] zfill worker thread number --- build.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build.c b/build.c index fec86591..c422951f 100644 --- a/build.c +++ b/build.c @@ -152,17 +152,13 @@ struct Worker { OS_ThreadEntryPointFuncDef(WorkerEntryPoint, arg) { -#if 0 I64 id = (I64)arg; { TempArena scratch = ScratchBeginNoConflict(); - String name = StringF(scratch.arena, Lit("Builder worker %F"), FmtI64(id)); + String name = StringF(scratch.arena, Lit("Buildit worker #%F"), FmtI64Zfill(id, 2)); OS_SetThreadName(name); ScratchEnd(scratch); } -#else - OS_SetThreadName(Lit("Builder worker")); -#endif while (!worker_shared->shutdown) { OS_MutexLockW(&worker_shared->mutex);