You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
driver: refactor the driver to be stored in a shared set of handles (tokio-rs#196)
This opens up a lot of further cleanup opportunities, especially around
shutdown logic. It also opens up the opportunity for us to eventually
provide a public Handle API.
I am trying to make it so that we don't need to orchestrate our entire
shutdown logic around the thread locals rather than purely the CONTEXT
thread local, which is slightly broken to begin with (I believe that
there are currently issues around creating two runtimes at the same
time).
Now the CONTEXT behaves more like in tokio. When you enter a runtime
context via block_on, we set the context. When we leave that call, we
unset the context.
This also allows us to have a bit more flexibility with things like
sending ops between multiple runtimes as well, so you can now in theory
await ops created from another runtime.
Part of the goal of this is to add new options around things like fixed
or provided buffers. This potentially allows us to work towards things
like transferring buffers between uring runtimes.
More importantly however, it is a crucial first step towards having a
handle to a uring runtime.
More refactoring to come.
0 commit comments