mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Add rb_thread_current_scheduler()
.
This commit is contained in:
parent
a9ccebbda0
commit
703e529751
Notes:
git
2020-09-14 13:44:40 +09:00
2 changed files with 10 additions and 2 deletions
6
thread.c
6
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue