More thread names.

This commit is contained in:
rsc 2005-09-26 11:46:21 +00:00
parent 5b0927915f
commit 391363f510
3 changed files with 5 additions and 0 deletions

View file

@ -341,6 +341,7 @@ shutdownthread(void *v)
USED(v); USED(v);
threadsetname("shutdown");
c = threadnotechan(); c = threadnotechan();
while((msg = recvp(c)) != nil) while((msg = recvp(c)) != nil)
shutdown(nil, msg); shutdown(nil, msg);

View file

@ -1323,6 +1323,8 @@ runproc(void *argvp)
void **argv; void **argv;
CFsys *fs; CFsys *fs;
threadsetname("runproc");
argv = argvp; argv = argvp;
win = argv[0]; win = argv[0];
s = argv[1]; s = argv[1];

View file

@ -139,6 +139,8 @@ fsysproc(void *v)
Fcall t; Fcall t;
uchar *buf; uchar *buf;
threadsetname("fsysproc");
USED(v); USED(v);
x = nil; x = nil;
for(;;){ for(;;){