From 703e529751deb086a46a9c029ce38d4fff14e84c Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 20 Aug 2020 13:47:55 +1200 Subject: Add `rb_thread_current_scheduler()`. --- thread.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 2f265c5cfc..d10d4118c3 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) { -- cgit v1.2.3