diff options
author | Samuel Williams <[email protected]> | 2020-10-16 14:25:58 +1300 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2020-11-07 23:39:50 +1300 |
commit | a08ee8330d3d739467bfa34deeb797d83e59ed3c (patch) | |
tree | d14bc8f1417f39f9924b93343ddfd6451b3db8c3 /eval.c | |
parent | 656d4cddaf2debd0c66b9bd980f51bcbf0849bd6 (diff) |
Rename to `Fiber#set_scheduler`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3742
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -30,6 +30,7 @@ #include "internal/object.h" #include "internal/thread.h" #include "internal/variable.h" +#include "internal/scheduler.h" #include "iseq.h" #include "mjit.h" #include "probes.h" @@ -149,12 +150,11 @@ ruby_options(int argc, char **argv) static void rb_ec_scheduler_finalize(rb_execution_context_t *ec) { - rb_thread_t *thread = rb_ec_thread_ptr(ec); enum ruby_tag_type state; EC_PUSH_TAG(ec); if ((state = EC_EXEC_TAG()) == TAG_NONE) { - rb_thread_scheduler_set(thread->self, Qnil); + rb_scheduler_set(Qnil); } else { state = error_handle(ec, state); |