diff options
author | rsc <devnull@localhost> | 2005-01-18 20:17:12 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-18 20:17:12 +0000 |
commit | 515b6e5bffe8ac8c28015d7656ba54b9930b5e63 (patch) | |
tree | 67a67b84e93676d4430056381f8dc48035551595 /src | |
parent | 361e279c59273dc82b1a5ced832d790a3b8b7a28 (diff) | |
download | plan9port-515b6e5bffe8ac8c28015d7656ba54b9930b5e63.tar.gz plan9port-515b6e5bffe8ac8c28015d7656ba54b9930b5e63.tar.bz2 plan9port-515b6e5bffe8ac8c28015d7656ba54b9930b5e63.zip |
add threadgetname
Diffstat (limited to 'src')
-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, ...) { |