From 769ff25033ff891e1487dfc7b714f0daa6ebdf65 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 18 Aug 2007 08:40:13 +0000 Subject: * thread.c (is_ruby_native_thread): check properly. [ruby-dev:31166] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 69f3b29e9..aec4340d5 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; } -- cgit