summaryrefslogtreecommitdiff
path: root/internal/scheduler.h
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 /internal/scheduler.h
parent656d4cddaf2debd0c66b9bd980f51bcbf0849bd6 (diff)
Rename to `Fiber#set_scheduler`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3742
Diffstat (limited to 'internal/scheduler.h')
-rw-r--r--internal/scheduler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/scheduler.h b/internal/scheduler.h
index 186f4bd38c1..472edc6368b 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);