diff options
Diffstat (limited to 'src/libstd/rt/task.rs')
| -rw-r--r-- | src/libstd/rt/task.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index 583a1e0657c..3fdbc8938ba 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -277,6 +277,13 @@ impl Task { pub fn local_io<'a>(&'a mut self) -> Option<LocalIo<'a>> { self.imp.get_mut_ref().local_io() } + + /// Returns the stack bounds for this task in (lo, hi) format. The stack + /// bounds may not be known for all tasks, so the return value may be + /// `None`. + pub fn stack_bounds(&self) -> Option<(uint, uint)> { + self.imp.get_ref().stack_bounds() + } } impl Drop for Task { |
