zfill worker thread number
This commit is contained in:
parent
e977d95504
commit
6704980693
6
build.c
6
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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user