diff options
author | Carl Lerche <me@carllerche.com> | 2019-11-20 00:05:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 00:05:14 -0800 |
commit | 69975fb9601bbb21659db283d888470733bae660 (patch) | |
tree | 8db7c9a31e4125646634af09e197ae6479e10cc4 /tokio/src/process | |
parent | 7c8b8877d440629ab9a27a2c9dcef859835d3536 (diff) |
Refactor the I/O driver, extracting slab to `tokio::util`. (#1792)
The I/O driver is made private and moved to `tokio::io::driver`. `Registration` is
moved to `tokio::io::Registration` and `PollEvented` is moved to `tokio::io::PollEvented`.
Additionally, the concurrent slab used by the I/O driver is cleaned up and extracted to
`tokio::util::slab`, allowing it to eventually be used by other types.
Diffstat (limited to 'tokio/src/process')
-rw-r--r-- | tokio/src/process/unix/mod.rs | 2 | ||||
-rw-r--r-- | tokio/src/process/windows.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/process/unix/mod.rs b/tokio/src/process/unix/mod.rs index 72f6f0bf..c25d9897 100644 --- a/tokio/src/process/unix/mod.rs +++ b/tokio/src/process/unix/mod.rs @@ -27,7 +27,7 @@ use orphan::{OrphanQueue, OrphanQueueImpl, Wait}; mod reap; use reap::Reaper; -use crate::net::util::PollEvented; +use crate::io::PollEvented; use crate::process::kill::Kill; use crate::process::SpawnedChild; use crate::signal::unix::{signal, Signal, SignalKind}; diff --git a/tokio/src/process/windows.rs b/tokio/src/process/windows.rs index d25807d6..54330e36 100644 --- a/tokio/src/process/windows.rs +++ b/tokio/src/process/windows.rs @@ -15,7 +15,7 @@ //! `RegisterWaitForSingleObject` and then wait on the other end of the oneshot //! from then on out. -use crate::net::util::PollEvented; +use crate::io::PollEvented; use crate::process::kill::Kill; use crate::process::SpawnedChild; use crate::sync::oneshot; |