summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-22 10:12:02 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-22 10:12:02 +0000
commitb451955bbb53f773186c3f2b80506ef5bbf9dfb6 (patch)
tree41c28abecc03311c66aa22327d1f0d7fa7b8bac3 /thread_win32.c
parent3be4523bde22f2db6a5b7c60929f8e4194ba2a92 (diff)
* thread_win32.c (Init_native_thread): need to call
ruby_thread_set_native() here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 0befbff..684085f 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -50,6 +50,7 @@ Init_native_thread(void)
rb_thread_t *th = GET_THREAD();
ruby_native_thread_key = TlsAlloc();
+ ruby_thread_set_native(th);
DuplicateHandle(GetCurrentProcess(),
GetCurrentThread(),
GetCurrentProcess(),