]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/rt/mod.rs
auto merge of #11360 : huonw/rust/stack_bounds, r=alexcrichton
[rust.git] / src / libstd / rt / mod.rs
index 9bd804f7babe82edfb4b6182242bcb484c67d76b..e7adb5ad7ddafff8c0b3f7ca878f81c3aeda5447 100644 (file)
 #[allow(missing_doc)];
 
 use any::Any;
-use clone::Clone;
-use container::Container;
-use iter::Iterator;
 use option::Option;
-use ptr::RawPtr;
 use result::Result;
 use task::TaskOpts;
-use vec::{OwnedVector, MutableVector, ImmutableVector};
 
 use self::task::{Task, BlockedTask};
 
@@ -159,6 +154,8 @@ fn deschedule(~self, times: uint, cur_task: ~Task,
     // you're in.
     fn spawn_sibling(~self, cur_task: ~Task, opts: TaskOpts, f: proc());
     fn local_io<'a>(&'a mut self) -> Option<rtio::LocalIo<'a>>;
+    /// The (low, high) edges of the current stack.
+    fn stack_bounds(&self) -> (uint, uint); // (lo, hi)
 
     // XXX: This is a serious code smell and this should not exist at all.
     fn wrap(~self) -> ~Any;