Skip to content

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.

3 participants