mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* 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/branches/ruby_1_9_2@28183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81cd7b07b8
commit
366ff21e06
5 changed files with 17 additions and 3 deletions
|
@ -163,7 +163,7 @@ ruby_thread_set_native(rb_thread_t *th)
|
|||
return pthread_setspecific(ruby_native_thread_key, th) == 0;
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
Init_native_thread(void)
|
||||
{
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue