diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-05 23:26:43 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-05 23:26:43 +0000 |
commit | f40d2c967005e49914046bbc6a7a8c06c46b1d38 (patch) | |
tree | 557f5f561362ffa068ab83981fdf9be724916d19 /vm.c | |
parent | 60d6d93b28da4686ee83632750ffa8df75988659 (diff) | |
download | ruby-f40d2c967005e49914046bbc6a7a8c06c46b1d38.tar.gz |
* vm.c (Init_BareVM): call Init_native_thread here.
* thread.c (Init_Thread): don't call Init_native_thread.
* thread_pthread.c (Init_native_thread): exported.
* thread_win32.c (Init_native_thread): ditto.
[ruby-dev:41536]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2110,6 +2110,8 @@ struct rb_objspace *rb_objspace_alloc(void); #endif void ruby_thread_init_stack(rb_thread_t *th); +extern void Init_native_thread(void); + void Init_BareVM(void) { @@ -2130,6 +2132,7 @@ Init_BareVM(void) #endif ruby_current_vm = vm; + Init_native_thread(); th_init2(th, 0); th->vm = vm; ruby_thread_init_stack(th); |