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: update MultiThread to use its own Handle #5025

Merged
merged 1 commit into from Sep 17, 2022
Merged

Conversation

carllerche
Copy link
Member

This is the equivalent of #5023, but for the MultiThread scheduler. This patch updates MultiThread to use Arc<Handle> for all of its cross-thread needs instead of Arc<Shared>.

The effect of this change is that the multi-thread scheduler only has a single Arc type, which includes the driver handles, keeping all "shared state" together.

This is the equivalent as #5023, but for the MultiThread
scheduler. This patch updates `MultiThread` to use `Arc<Handle>` for all
of its cross-thread needs instead of `Arc<Shared>`.

The effect of this change is that the multi-thread scheduler only has a
single `Arc` type, which includes the driver handles, keeping all
"shared state" together.
@github-actions github-actions bot added the R-loom Run loom tests on this PR label Sep 17, 2022
@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 and removed R-loom Run loom tests on this PR labels Sep 17, 2022
@carllerche carllerche merged commit cdd6eea into master Sep 17, 2022
@carllerche carllerche deleted the mt-rt-cleanup branch September 17, 2022 02:57
dbischof90 pushed a commit to dbischof90/tokio that referenced this pull request Oct 1, 2022
This is the equivalent as tokio-rs#5023, but for the MultiThread
scheduler. This patch updates `MultiThread` to use `Arc<Handle>` for all
of its cross-thread needs instead of `Arc<Shared>`.

The effect of this change is that the multi-thread scheduler only has a
single `Arc` type, which includes the driver handles, keeping all
"shared state" together.
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants