Actions
Bug #18003
closedRework internal IO to directly invoke scheduler with IO object.
Description
Many functions are still going through C functions which take file descriptors fd argument, and internally we need to create an IO object to handle this correctly in the fiber scheduler. This is slightly inefficient, so we should rework these code paths to use the updated interfaces which handle IO instances directly.
Updated by Eregon (Benoit Daloze) about 2 years ago
rb_io_wait_readable
,rb_io_wait_writable
andrb_wait_for_single_fd
are
deprecated in favour ofrb_io_maybe_wait_readable
,
rb_io_maybe_wait_writable
andrb_io_maybe_wait
respectively.
rb_thread_wait_fd
andrb_thread_fd_writable
are deprecated.
Why have these functions maybe
in the name? That seems confusing.
Actions
Like0
Like0