Actions
Bug #18003
closedRework internal IO to directly invoke scheduler with IO object.
Bug #18003:
Rework 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) almost 3 years ago
rb_io_wait_readable,rb_io_wait_writableandrb_wait_for_single_fdare
deprecated in favour ofrb_io_maybe_wait_readable,
rb_io_maybe_wait_writableandrb_io_maybe_waitrespectively.
rb_thread_wait_fdandrb_thread_fd_writableare deprecated.
Why have these functions maybe in the name? That seems confusing.
Actions