tadd threadgetname - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 515b6e5bffe8ac8c28015d7656ba54b9930b5e63 | |
parent 361e279c59273dc82b1a5ced832d790a3b8b7a28 | |
Author: rsc | |
Date: Tue, 18 Jan 2005 20:17:12 +0000 add threadgetname Diffstat: M src/libthread/thread.c | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) --- | |
diff --git a/src/libthread/thread.c b/src/libthread/thread.c | |
t@@ -329,6 +329,12 @@ threadsetname(char *fmt, ...) va_end(arg); } +char* +threadgetname(void) +{ + return proc()->thread->name; +} + void threadsetstate(char *fmt, ...) { |