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: Allow concurrent Shell:block_on calls #2868

Merged
merged 3 commits into from Sep 24, 2020
Merged

Conversation

LucioFranco
Copy link
Member

Related to #2720

This makes Shell::block_on go from a &mut self to &self and follows a similar pattern to #2804. Similar to the basic_scheduler this will wrap the driver in a mutex and allow a single thread to park the driver. Once, that thread is done with the parker it will replace it back into the mutex state and it will use Notify to wake up other threads to then attempt to steal the driver.

@LucioFranco LucioFranco added A-tokio Area: The main tokio crate M-runtime Module: tokio/runtime labels Sep 23, 2020
@LucioFranco LucioFranco merged commit 4dfbdbf into master Sep 24, 2020
@LucioFranco LucioFranco deleted the lucio/refactor-shell branch September 24, 2020 17:31
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 M-runtime Module: tokio/runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants