summaryrefslogtreecommitdiffstats
path: root/tokio/src/runtime/mod.rs
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2020-09-22 15:40:44 -0700
committerGitHub <noreply@github.com>2020-09-22 15:40:44 -0700
commit7ae5b7bd4f93612f91ab504ffb63aa8241c1d7bb (patch)
tree990e22703eb7103b030f5e8bf117557684a9f205 /tokio/src/runtime/mod.rs
parente09b90ea32385337170ce17eb55ab372f9388af5 (diff)
signal: move driver to runtime thread (#2835)
Refactors the signal infrastructure to move the driver to the runtime thread. This follows the model put forth by the I/O driver and time driver.
Diffstat (limited to 'tokio/src/runtime/mod.rs')
-rw-r--r--tokio/src/runtime/mod.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs
index bec0ecd5..884c2b46 100644
--- a/tokio/src/runtime/mod.rs
+++ b/tokio/src/runtime/mod.rs
@@ -208,13 +208,18 @@ cfg_blocking_impl! {
mod builder;
pub use self::builder::Builder;
+pub(crate) mod driver;
+
pub(crate) mod enter;
use self::enter::enter;
mod handle;
use handle::Handle;
-mod io;
+mod io {
+ /// Re-exported for convenience.
+ pub(crate) use std::io::Result;
+}
cfg_rt_threaded! {
mod park;
@@ -227,8 +232,6 @@ use self::shell::Shell;
mod spawner;
use self::spawner::Spawner;
-mod time;
-
cfg_rt_threaded! {
mod queue;
@@ -293,7 +296,7 @@ enum Kind {
/// Execute all tasks on the current-thread.
#[cfg(feature = "rt-core")]
- Basic(Mutex<Option<BasicScheduler<time::Driver>>>),
+ Basic(Mutex<Option<BasicScheduler<driver::Driver>>>),
/// Execute tasks across multiple threads.
#[cfg(feature = "rt-threaded")]