summaryrefslogtreecommitdiff
path: root/internal/scheduler.h
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-08-21 00:53:08 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-09-14 16:44:09 +1200
commit701dcbb3ca9bf04b61cc07156608c61aaf9173f0 (patch)
tree4f732ba3b246c53a075894eb7e7758bb55e57607 /internal/scheduler.h
parent132453fa521cf87693035769031f3501ddc02f4a (diff)
Add support for hooking `IO#read`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3434
Diffstat (limited to 'internal/scheduler.h')
-rw-r--r--internal/scheduler.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/scheduler.h b/internal/scheduler.h
index be976d7be56..f5a41af0645 100644
--- a/internal/scheduler.h
+++ b/internal/scheduler.h
@@ -21,7 +21,10 @@ VALUE rb_scheduler_io_wait(VALUE scheduler, VALUE io, VALUE events, VALUE timeou
VALUE rb_scheduler_io_wait_readable(VALUE scheduler, VALUE io);
VALUE rb_scheduler_io_wait_writable(VALUE scheduler, VALUE io);
-VALUE rb_scheduler_io_read(VALUE scheduler, VALUE io, VALUE buffer, VALUE offset, VALUE length);
-VALUE rb_scheduler_io_write(VALUE scheduler, VALUE io, VALUE buffer, VALUE offset, VALUE length);
+int rb_scheduler_supports_io_read(VALUE scheduler);
+VALUE rb_scheduler_io_read(VALUE scheduler, VALUE io, VALUE buffer, size_t offset, size_t length);
+
+int rb_scheduler_supports_io_write(VALUE scheduler);
+VALUE rb_scheduler_io_write(VALUE scheduler, VALUE io, VALUE buffer, size_t offset, size_t length);
#endif /* RUBY_SCHEDULER_H */