Skip to content
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

rt: rm internal Unpark types for Handle types #5027

Merged
merged 1 commit into from Sep 18, 2022
Merged

Conversation

carllerche
Copy link
Member

This patch removes all internal Unpark runtime types. The runtime now uses the Handle types (runtime::io::Handle and runtime::time::Handle) to signal threads to unpark.

Without separate Unpark types, future patches will be able to remove more Arcs used inside various drivers.

This depends on #5026

@carllerche carllerche added C-maintenance Category: PRs that clean code up or issues documenting cleanup. A-tokio Area: The main tokio crate M-runtime Module: tokio/runtime labels Sep 17, 2022
@github-actions github-actions bot added the R-loom Run loom tests on this PR label Sep 17, 2022
@carllerche carllerche marked this pull request as draft September 17, 2022 20:24
Base automatically changed from split-driver-unpark-from-mt-parker to master September 17, 2022 23:46
This patch removes all internal `Unpark` runtime types. The runtime now
uses the `Handle` types (`runtime::io::Handle` and
`runtime::time::Handle`) to signal threads to unpark.

Without separate `Unpark` types, future patches will be able to remove
more `Arc`s used inside various drivers.
@carllerche carllerche marked this pull request as ready for review September 17, 2022 23:48
@carllerche carllerche merged commit 0b92f80 into master Sep 18, 2022
@carllerche carllerche deleted the rm-driver-unpark branch September 18, 2022 17:10
dbischof90 pushed a commit to dbischof90/tokio that referenced this pull request Oct 1, 2022
This patch removes all internal `Unpark` runtime types. The runtime now
uses the `Handle` types (`runtime::io::Handle` and
`runtime::time::Handle`) to signal threads to unpark.

Without separate `Unpark` types, future patches will be able to remove
more `Arc`s used inside various drivers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-maintenance Category: PRs that clean code up or issues documenting cleanup. M-runtime Module: tokio/runtime R-loom Run loom tests on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants