summaryrefslogtreecommitdiff
path: root/test/-ext-/wait_for_single_fd
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-14 23:40:55 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-14 23:40:55 +0000
commitcda10c6d0b9114b95de012f19f36b0bd3c19657a (patch)
tree2a0f85beeaa74d9cfed0391ff4a6acda8c712a1f /test/-ext-/wait_for_single_fd
parent6f0de6ed98e669e915455569fb4dae9022cb47b8 (diff)
io.c: cleanup copy_stream wait-for-single-fd cases
Avoid paying unnecessary setup and teardown cost for rb_fdset_t on platforms (Linux) with good poll() support. This simplifies code makes future changes (perhaps for sleepy GC) easier. * io.c (struct copy_stream_struct): remove rb_fdset_t fds (nogvl_wait_for_single_fd): implement with select for non-poll case (maygvl_copy_stream_wait_read): remove duplicate definition (nogvl_copy_stream_wait_write): remove #ifdef (copy_stream_body): remove rb_fd_set calls (copy_stream_finalize): remove rb_fd_term call (rb_io_s_copy_stream): remove rb_fd_init git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/wait_for_single_fd')
0 files changed, 0 insertions, 0 deletions