Unwind the stack on task failure

When a task fails, we will throw an exception, then catch it at the bottom of
the stack.

On Windows we don't do this yet because the exception doesn't propagate
correctly.

No cleanups yet.

Issue #236
This commit is contained in:
Brian Anderson
2011-09-06 18:31:41 -07:00
parent c337fd5467
commit c047cfb710
2 changed files with 41 additions and 8 deletions

View File

@@ -155,6 +155,7 @@ rust_task : public kernel_owned<rust_task>, rust_cond
// Fail self, assuming caller-on-stack is this task.
void fail();
void conclude_failure();
// Disconnect from our supervisor.
void unsupervise();