plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 515b6e5bffe8ac8c28015d7656ba54b9930b5e63
parent 361e279c59273dc82b1a5ced832d790a3b8b7a28
Author: rsc <devnull@localhost>
Date:   Tue, 18 Jan 2005 20:17:12 +0000

add threadgetname

Diffstat:
Msrc/libthread/thread.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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, ...) {