From 01a52d728c5058769e6c0939c57579821f238056 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 14 Jul 2011 17:56:59 -0700 Subject: 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. --- src/rt/rust_builtin.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rt/rust_builtin.cpp') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 1ed2c4ec36d..e8900dd730a 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -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 -- cgit 1.4.1-3-g733a5