aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-10-16 14:25:58 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-11-07 23:39:50 +1300
commita08ee8330d3d739467bfa34deeb797d83e59ed3c (patch)
treed14bc8f1417f39f9924b93343ddfd6451b3db8c3 /eval.c
parent656d4cddaf2debd0c66b9bd980f51bcbf0849bd6 (diff)
downloadruby-a08ee8330d3d739467bfa34deeb797d83e59ed3c.tar.gz
Rename to `Fiber#set_scheduler`.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 9a10cb46b1..a77fb660bc 100644
--- a/eval.c
+++ b/eval.c
@@ -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);