summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-13 08:39:30 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-13 08:39:30 (GMT)
commit712a570f5624c0beaac808e03c26915c7afd0806 (patch)
treecea0a90fc907b3ee1aaec51efcd29e71e159bd2a /vm_core.h
parent654b90d31a59f16a3c03b7def85acac84d722034 (diff)
* vm_core.h (rb_thread_t): add th->name.
* vm.c (th_init): initialize th->name. * thread.c (Init_Thread): add Thread.name and Thread.name=. * thread.c (rb_thread_inspect): show thread's name if set. * thread.c (rb_thread_getname): defined. * thread.c (rb_thread_setname): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 55ed676..313e34f 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -745,6 +745,7 @@ typedef struct rb_thread_struct {
void *altstack;
#endif
unsigned long running_time_us;
+ VALUE name;
} rb_thread_t;
typedef enum {