summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 2f265c5..d10d411 100644
--- a/thread.c
+++ b/thread.c
@@ -3749,6 +3749,12 @@ rb_thread_scheduler(VALUE klass)
return rb_thread_scheduler_if_nonblocking(rb_thread_current());
}
+static VALUE
+rb_thread_current_scheduler()
+{
+ return rb_thread_scheduler_if_nonblocking(rb_thread_current());
+}
+
VALUE
rb_thread_scheduler_if_nonblocking(VALUE thread)
{