summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 09:51:48 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 09:51:48 +0000
commit903f726ff7eff4284f8027e290d3451d377ebf5c (patch)
treeeb78b2cde6c0a2347b86767e6e1bdae51064b26e /thread_win32.c
parentfbdf4de0938cdd4606094ed44a31cfce36dc5aac (diff)
merges r20914 from trunk into ruby_1_9_1.
* thread_win32.c (Init_native_thread): need to call ruby_thread_set_native() here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21002 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 0befbff4ae..684085fdb0 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(),