summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-18 08:40:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-18 08:40:13 +0000
commit6fc746d7e32243b4c46ac5ef9fee4806664fd7e6 (patch)
tree966dc305bfddb1b740f825806de4720d8e720825 /thread.c
parent2c5ae0eebad1397653f5dac5982cd5eba14ff35d (diff)
* thread.c (is_ruby_native_thread): check properly. [ruby-dev:31166]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 69f3b29e91..aec4340d5e 100644
--- a/thread.c
+++ b/thread.c
@@ -3002,5 +3002,8 @@ Init_Thread(void)
int
is_ruby_native_thread(void)
{
- return Qtrue;
+ rb_thread_t *rb_thread_check_ptr(rb_thread_t *ptr);
+ rb_thread_t *th = ruby_thread_from_native();
+
+ return th ? Qtrue : Qfalse;
}