zfill worker thread number

This commit is contained in:
jacob 2024-06-11 13:03:16 -05:00
parent e977d95504
commit 6704980693

View File

@ -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);