aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-08-20 13:47:55 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-09-14 16:44:09 +1200
commit703e529751deb086a46a9c029ce38d4fff14e84c (patch)
tree178ee1aacd628dab0652da309cc13325914e6198 /internal
parenta9ccebbda0fed90952575f940440ac3697ba141b (diff)
downloadruby-703e529751deb086a46a9c029ce38d4fff14e84c.tar.gz
Add `rb_thread_current_scheduler()`.
Diffstat (limited to 'internal')
-rw-r--r--internal/thread.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/thread.h b/internal/thread.h
index 91626b7e76..e7a9019b88 100644
--- a/internal/thread.h
+++ b/internal/thread.h
@@ -37,9 +37,11 @@ void rb_mutex_allow_trap(VALUE self, int val);
VALUE rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data);
VALUE rb_mutex_owned_p(VALUE self);
-VALUE rb_thread_scheduler_get(VALUE);
-VALUE rb_thread_scheduler_set(VALUE, VALUE);
+VALUE rb_thread_scheduler_get(VALUE thread);
+VALUE rb_thread_scheduler_set(VALUE thread, VALUE scheduler);
+
VALUE rb_thread_scheduler_if_nonblocking(VALUE thread);
+VALUE rb_thread_current_scheduler();
RUBY_SYMBOL_EXPORT_BEGIN
/* Temporary. This API will be removed (renamed). */