* 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
This commit is contained in:
parent
aca69e1fdc
commit
dda8de065c
@ -1,3 +1,7 @@
|
|||||||
|
Sat Feb 12 14:42:11 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* vm.c (th_init): rename from th_init2.
|
||||||
|
|
||||||
Sat Feb 12 14:41:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Feb 12 14:41:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/test/unit.rb (Test::Unit::AutoRunner#initialize): use
|
* lib/test/unit.rb (Test::Unit::AutoRunner#initialize): use
|
||||||
|
11
vm.c
11
vm.c
@ -1781,7 +1781,7 @@ thread_alloc(VALUE klass)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
th_init2(rb_thread_t *th, VALUE self)
|
th_init(rb_thread_t *th, VALUE self)
|
||||||
{
|
{
|
||||||
th->self = self;
|
th->self = self;
|
||||||
|
|
||||||
@ -1797,12 +1797,7 @@ th_init2(rb_thread_t *th, VALUE self)
|
|||||||
th->status = THREAD_RUNNABLE;
|
th->status = THREAD_RUNNABLE;
|
||||||
th->errinfo = Qnil;
|
th->errinfo = Qnil;
|
||||||
th->last_status = 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
|
static VALUE
|
||||||
@ -2142,7 +2137,7 @@ Init_BareVM(void)
|
|||||||
ruby_current_vm = vm;
|
ruby_current_vm = vm;
|
||||||
|
|
||||||
Init_native_thread();
|
Init_native_thread();
|
||||||
th_init2(th, 0);
|
th_init(th, 0);
|
||||||
th->vm = vm;
|
th->vm = vm;
|
||||||
ruby_thread_init_stack(th);
|
ruby_thread_init_stack(th);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user