aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-10-01 13:44:23 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-10-01 16:56:05 +1300
commitdd2e95fb26b89ce060631af0fd372b5780a443dd (patch)
treef1c4f538f760038e3b34221e29d4db5642be2a0b /thread.c
parent7f2902059031ffe0dad35c9832e4be33d57c5588 (diff)
downloadruby-dd2e95fb26b89ce060631af0fd372b5780a443dd.tar.gz
Remove `Thread.scheduler` from public interface.
It's implementation is equivalent to: Thread.current.scheduler unless Thread.current.blocking?
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 510d8a028b..3aca71dd6c 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);