Skip to content

Move wait* methods to io.c. - #6036

Merged
ioquatix merged 1 commit into
ruby:masterfrom
ioquatix:io-wait
Jun 25, 2022
Merged

ioquatix merged 1 commit into
ruby:masterfrom
ioquatix:io-wait

Conversation

@ioquatix

@ioquatix ioquatix commented Jun 18, 2022 •

Copy link
Copy Markdown
Member

Addresses https://bugs.ruby-lang.org/issues/18655.

Fixes ruby/io-wait#13 and improves compatibility with previous method return value.

  • Copied IO#wait* methods to io.c with slightly improved compatibility with Ruby 2.x and fiber scheduler.
  • Added flag to io.h and skip these methods in io-wait extension if present.
  • A little extra documentation explaining wait_priority & MSG_OOB.

@ioquatix
ioquatix force-pushed the io-wait branch 2 times, most recently from 1be1d16 to a4661da Compare June 19, 2022 11:40
Comment thread gems/bundled_gems Resolved
@byroot

byroot commented Jun 20, 2022

Copy link
Copy Markdown
Member

I'm in favor (obviously) but wasn't the ticket inconclusive?

@ioquatix
ioquatix force-pushed the io-wait branch 4 times, most recently from 825e74f to 4b20be0 Compare June 21, 2022 01:19
@ioquatix

Copy link
Copy Markdown
Member Author

@byroot Thanks for your work on this issue and your previous PR. There were some compatibility and interface issues I wanted to address so I decided to make this PR. Regarding this PR and the issue, I think most people are in favour of doing something, but there might need to be one final pass in the next developer meeting.

@ioquatix
ioquatix force-pushed the io-wait branch 2 times, most recently from e540d32 to a421491 Compare June 21, 2022 03:24
Comment thread io.c Resolved
@nobu

nobu commented Jun 22, 2022

Copy link
Copy Markdown
Member

Why mixing the fix for ruby/io-wait#13?

@ioquatix

ioquatix commented Jun 22, 2022 •

Copy link
Copy Markdown
Member Author

Why mixing the fix for ruby/io-wait#13?

I'm not sure there is any point to be separate? I guess we can make separate PR.

@ioquatix
ioquatix requested a review from nobu June 22, 2022 05:05
@eregon

eregon commented Jun 22, 2022

Copy link
Copy Markdown
Member

I'm not sure there is any point to be separate? I guess we can make separate PR.

I would think it's a lot easier to review moving of code if the code itself doesn't change.
Mixing in other changes makes it near impossible to review, even more so in a single commit.

@ioquatix

Copy link
Copy Markdown
Member Author

Okay sure I will make two separate PRs.

@ioquatix

Copy link
Copy Markdown
Member Author

ruby/io-wait#18

@ioquatix
ioquatix merged commit d2166c0 into ruby:master Jun 25, 2022
@ioquatix
ioquatix deleted the io-wait branch June 25, 2022 09:17
MSP-Greg added a commit to MSP-Greg/ruby that referenced this pull request Dec 13, 2022
MSP-Greg added a commit to MSP-Greg/ruby that referenced this pull request Dec 13, 2022
MSP-Greg added a commit to MSP-Greg/ruby that referenced this pull request Dec 13, 2022
ioquatix pushed a commit that referenced this pull request Dec 13, 2022
headius added a commit to jruby/jruby that referenced this pull request Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IO#wait doesn't return event type

5 participants