Add rb_thread_current_scheduler().

This commit is contained in:
Samuel Williams 2020-08-20 13:47:55 +12:00
parent a9ccebbda0
commit 703e529751
Notes: git 2020-09-14 13:44:40 +09:00
2 changed files with 10 additions and 2 deletions

View file

@ -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)
{