Project

General

Profile

Actions

Bug #18003

closed

Rework internal IO to directly invoke scheduler with IO object.

Added by ioquatix (Samuel Williams) over 3 years ago. Updated about 2 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-core:104377]

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 and rb_wait_for_single_fd are
deprecated in favour of rb_io_maybe_wait_readable,
rb_io_maybe_wait_writable and rb_io_maybe_wait respectively.
rb_thread_wait_fd and rb_thread_fd_writable are deprecated.

Why have these functions maybe in the name? That seems confusing.

Actions

Also available in: Atom PDF

Like0
Like0