diff options
author | Samuel Williams <[email protected]> | 2020-08-20 13:47:55 +1200 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2020-09-14 16:44:09 +1200 |
commit | 703e529751deb086a46a9c029ce38d4fff14e84c (patch) | |
tree | 178ee1aacd628dab0652da309cc13325914e6198 /internal | |
parent | a9ccebbda0fed90952575f940440ac3697ba141b (diff) |
Add `rb_thread_current_scheduler()`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3434
Diffstat (limited to 'internal')
-rw-r--r-- | internal/thread.h | 6 |
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). */ |