1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rb_thread_scheduler is no longer used

This commit is contained in:
Nobuyoshi Nakada 2020-10-01 13:45:20 +09:00
parent 0e98a9c854
commit 0d37ed5fdc
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -3775,6 +3775,7 @@ rb_thread_scheduler_set(VALUE thread, VALUE scheduler)
return th->scheduler;
}
#if 0 // no longer used
/*
* call-seq:
* Thread.scheduler -> scheduler or nil
@ -3788,6 +3789,7 @@ rb_thread_scheduler(VALUE klass)
{
return rb_thread_scheduler_if_nonblocking(rb_thread_current());
}
#endif
VALUE
rb_thread_current_scheduler()