diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-10-17 13:39:27 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-11-08 20:40:39 -0800 |
| commit | fa94fdad3e880d2d6cbd82c12bd12caefbeb81a8 (patch) | |
| tree | 0106666f15341d9d050e99ca73acaf3a2d22d7a5 /src/libnative/task.rs | |
| parent | 431dcdc840a27f7c7418b7dff73a329eada8a407 (diff) | |
| download | rust-fa94fdad3e880d2d6cbd82c12bd12caefbeb81a8.tar.gz rust-fa94fdad3e880d2d6cbd82c12bd12caefbeb81a8.zip | |
Runtime removal: fully remove rtio
This patch cleans up the remnants of the runtime IO interface. Because this eliminates APIs in `libnative` and `librustrt`, it is a: [breaking-change] This functionality is likely to be available publicly, in some form, from `std` in the future.
Diffstat (limited to 'src/libnative/task.rs')
| -rw-r--r-- | src/libnative/task.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libnative/task.rs b/src/libnative/task.rs index e702c12bdff..6d640b61b18 100644 --- a/src/libnative/task.rs +++ b/src/libnative/task.rs @@ -19,13 +19,11 @@ use std::mem; use std::rt::bookkeeping; use std::rt::local::Local; use std::rt::mutex::NativeMutex; -use std::rt::rtio; use std::rt::stack; use std::rt::task::{Task, BlockedTask, TaskOpts}; use std::rt::thread::Thread; use std::rt; -use io; use std::task::{TaskBuilder, Spawner}; /// Creates a new Task which is ready to execute as a 1:1 task. @@ -42,7 +40,6 @@ fn ops() -> Box<Ops> { box Ops { lock: unsafe { NativeMutex::new() }, awoken: false, - io: io::IoFactory::new(), // these *should* get overwritten stack_bounds: (0, 0), stack_guard: 0 @@ -112,7 +109,6 @@ impl<S: Spawner> NativeTaskBuilder for TaskBuilder<S> { struct Ops { lock: NativeMutex, // native synchronization awoken: bool, // used to prevent spurious wakeups - io: io::IoFactory, // local I/O factory // This field holds the known bounds of the stack in (lo, hi) form. Not all // native tasks necessarily know their precise bounds, hence this is @@ -272,10 +268,6 @@ impl rt::Runtime for Ops { NativeSpawner.spawn(opts, f); } - - fn local_io<'a>(&'a mut self) -> Option<rtio::LocalIo<'a>> { - Some(rtio::LocalIo::new(&mut self.io as &mut rtio::IoFactory)) - } } #[cfg(test)] |
