ruby-changes:18826
From: nobu <ko1@a...>
Date: Sat, 12 Feb 2011 14:42:23 +0900 (JST)
Subject: [ruby-changes:18826] Ruby:r30851 (trunk): * vm.c (th_init): rename from th_init2.
nobu 2011-02-12 14:42:17 +0900 (Sat, 12 Feb 2011) New Revision: 30851 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30851 Log: * vm.c (th_init): rename from th_init2. Modified files: trunk/ChangeLog trunk/vm.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30850) +++ ChangeLog (revision 30851) @@ -1,3 +1,7 @@ +Sat Feb 12 14:42:11 2011 Nobuyoshi Nakada <nobu@r...> + + * vm.c (th_init): rename from th_init2. + Sat Feb 12 14:41:36 2011 Nobuyoshi Nakada <nobu@r...> * lib/test/unit.rb (Test::Unit::AutoRunner#initialize): use Index: vm.c =================================================================== --- vm.c (revision 30850) +++ vm.c (revision 30851) @@ -1781,7 +1781,7 @@ } static void -th_init2(rb_thread_t *th, VALUE self) +th_init(rb_thread_t *th, VALUE self) { th->self = self; @@ -1797,14 +1797,9 @@ th->status = THREAD_RUNNABLE; th->errinfo = Qnil; th->last_status = Qnil; + th->waiting_fd = -1; } -static void -th_init(rb_thread_t *th, VALUE self) -{ - th_init2(th, self); -} - static VALUE ruby_thread_init(VALUE self) { @@ -2142,7 +2137,7 @@ ruby_current_vm = vm; Init_native_thread(); - th_init2(th, 0); + th_init(th, 0); th->vm = vm; ruby_thread_init_stack(th); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/