diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-12 05:42:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-12 05:42:17 +0000 |
commit | dda8de065c1c7691ec8627d3024a61f324bc9f73 (patch) | |
tree | 0b47f326f6d7098b85b8a69bfeffcd80adeea471 /vm.c | |
parent | aca69e1fdc8ebf75f80b665a9d42bedc2410bd7e (diff) |
* vm.c (th_init): rename from th_init2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -1781,7 +1781,7 @@ thread_alloc(VALUE klass) } static void -th_init2(rb_thread_t *th, VALUE self) +th_init(rb_thread_t *th, VALUE self) { th->self = self; @@ -1797,12 +1797,7 @@ th_init2(rb_thread_t *th, VALUE self) th->status = THREAD_RUNNABLE; th->errinfo = Qnil; th->last_status = Qnil; -} - -static void -th_init(rb_thread_t *th, VALUE self) -{ - th_init2(th, self); + th->waiting_fd = -1; } static VALUE @@ -2142,7 +2137,7 @@ Init_BareVM(void) ruby_current_vm = vm; Init_native_thread(); - th_init2(th, 0); + th_init(th, 0); th->vm = vm; ruby_thread_init_stack(th); } |