diff options
-rw-r--r-- | src/libthread/thread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libthread/thread.c b/src/libthread/thread.c index dfc0acdf..b154ce6e 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c @@ -329,6 +329,12 @@ threadsetname(char *fmt, ...) va_end(arg); } +char* +threadgetname(void) +{ + return proc()->thread->name; +} + void threadsetstate(char *fmt, ...) { |