diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-10-16 14:25:58 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-11-07 23:39:50 +1300 |
commit | a08ee8330d3d739467bfa34deeb797d83e59ed3c (patch) | |
tree | d14bc8f1417f39f9924b93343ddfd6451b3db8c3 /internal | |
parent | 656d4cddaf2debd0c66b9bd980f51bcbf0849bd6 (diff) |
Rename to `Fiber#set_scheduler`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3742
Diffstat (limited to 'internal')
-rw-r--r-- | internal/scheduler.h | 6 | ||||
-rw-r--r-- | internal/thread.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/internal/scheduler.h b/internal/scheduler.h index 186f4bd38c..472edc6368 100644 --- a/internal/scheduler.h +++ b/internal/scheduler.h @@ -12,6 +12,12 @@ #include "ruby/ruby.h" #include "ruby/intern.h" +VALUE rb_scheduler_get(); +VALUE rb_scheduler_set(VALUE scheduler); + +VALUE rb_scheduler_current(); +VALUE rb_thread_scheduler_current(VALUE thread); + VALUE rb_scheduler_timeout(struct timeval *timeout); VALUE rb_scheduler_close(VALUE scheduler); diff --git a/internal/thread.h b/internal/thread.h index 13e419bc95..09b8551b5c 100644 --- a/internal/thread.h +++ b/internal/thread.h @@ -39,12 +39,6 @@ VALUE rb_mutex_owned_p(VALUE self); int rb_thread_wait_for_single_fd(int fd, int events, struct timeval * timeout); -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). */ VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd); |