summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-10-01 00:44:23 (GMT)
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-10-01 03:56:05 (GMT)
commitdd2e95fb26b89ce060631af0fd372b5780a443dd (patch)
treef1c4f538f760038e3b34221e29d4db5642be2a0b /thread.c
parent7f2902059031ffe0dad35c9832e4be33d57c5588 (diff)
Remove `Thread.scheduler` from public interface.
It's implementation is equivalent to: Thread.current.scheduler unless Thread.current.blocking?
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3610
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 510d8a0..3aca71d 100644
--- a/thread.c
+++ b/thread.c
@@ -5519,7 +5519,7 @@ Init_Thread(void)
rb_define_method(rb_cThread, "backtrace", rb_thread_backtrace_m, -1);
rb_define_method(rb_cThread, "backtrace_locations", rb_thread_backtrace_locations_m, -1);
- rb_define_singleton_method(rb_cThread, "scheduler", rb_thread_scheduler, 0);
+ // rb_define_singleton_method(rb_cThread, "scheduler", rb_thread_scheduler, 0);
rb_define_method(rb_cThread, "scheduler", rb_thread_scheduler_get, 0);
rb_define_method(rb_cThread, "scheduler=", rb_thread_scheduler_set, 1);