summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
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;
}