summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-05 23:26:43 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-05 23:26:43 +0000
commitf40d2c967005e49914046bbc6a7a8c06c46b1d38 (patch)
tree557f5f561362ffa068ab83981fdf9be724916d19 /thread_pthread.c
parent60d6d93b28da4686ee83632750ffa8df75988659 (diff)
* 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 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 285852baa9..c2a555aa6c 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -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();