add threadgetname

This commit is contained in:
rsc 2005-01-18 20:17:12 +00:00
parent 361e279c59
commit 515b6e5bff

View file

@ -329,6 +329,12 @@ threadsetname(char *fmt, ...)
va_end(arg);
}
char*
threadgetname(void)
{
return proc()->thread->name;
}
void
threadsetstate(char *fmt, ...)
{