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 CurrentThread to use its own Handle #5023

Merged
merged 2 commits into from Sep 17, 2022

Conversation

carllerche
Copy link
Member

This is the next step in the internal runtime refactoring. This patch updates CurrentThread to use Arc<Handle> for all of its cross-thread needs instead of Arc<Shared>.

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

This is the next step in the internal runtime refactoring. This patch
updates `CurrentThread` to use `Arc<Handle>` for all of its cross-thread
needs instead of `Arc<Shared>`.

The effect of this change is that the curerent-thread scheduler only has
a single `Arc` type, which includes the driver handles, keeping all
"shared state" together.
@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 16, 2022
@github-actions github-actions bot added the R-loom Run loom tests on this PR label Sep 16, 2022
@carllerche carllerche merged commit 2effa7f into master Sep 17, 2022
@carllerche carllerche deleted the current-thread-rt-cleanup branch September 17, 2022 00:34
carllerche added a commit that referenced this pull request Sep 17, 2022
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.
carllerche added a commit that referenced this pull request Sep 17, 2022
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.
dbischof90 pushed a commit to dbischof90/tokio that referenced this pull request Oct 1, 2022
This is the next step in the internal runtime refactoring. This patch
updates `CurrentThread` to use `Arc<Handle>` for all of its cross-thread
needs instead of `Arc<Shared>`.

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

Successfully merging this pull request may close these issues.

None yet

3 participants