Skip to content

Introduce rb_io_blocking_region which takes struct rb_io argument. #11795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 5, 2024

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Oct 4, 2024

This is in preparation for changes to struct rb_io. Instead of passing fd, we should pass the struct rb_io, so that we have access to all the internals. This does not change any visible behaviour, but funnels all calls to rb_thread_io_blocking_region via this interface, which can be later modified to handle IO#close more effectively.

I will do a few parts of the core conversion in this PR, and then follow up with separate PRs for ext/socket etc.

See the previous work #5384 for more details.

@ioquatix ioquatix force-pushed the io-blocking-region branch 2 times, most recently from 541be97 to 7060187 Compare October 4, 2024 09:02
@ioquatix ioquatix force-pushed the io-blocking-region branch from 7060187 to fc18c68 Compare October 4, 2024 09:07
@ioquatix
Copy link
Member Author

ioquatix commented Oct 4, 2024

See #11796 for ext/socket.

@ioquatix ioquatix force-pushed the io-blocking-region branch from e33cea0 to b6f34ad Compare October 4, 2024 12:08
@ioquatix ioquatix force-pushed the io-blocking-region branch from b6f34ad to 30a66fc Compare October 5, 2024 01:30
@ioquatix ioquatix merged commit c50298d into ruby:master Oct 5, 2024
69 checks passed
@ioquatix ioquatix deleted the io-blocking-region branch October 5, 2024 02:10
@ioquatix ioquatix added this to the v3.4.0 milestone Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant