Add an unsupervise builtin and function to std::task

Calling task::unsupervise de-parents the current task, with the result
that failures do not propogate up the task tree.
This commit is contained in:
Brian Anderson 2011-07-14 17:56:59 -07:00
parent 4738cf83b0
commit 01a52d728c
2 changed files with 10 additions and 0 deletions

View file

@ -425,6 +425,11 @@ task_join(rust_task *task, rust_task *join_task) {
}
}
extern "C" CDECL void
task_unsupervise(rust_task *task) {
task->unsupervise();
}
/* Debug builtins for std.dbg. */
static void