diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-07-14 17:56:59 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-07-14 17:56:59 -0700 |
| commit | 01a52d728c5058769e6c0939c57579821f238056 (patch) | |
| tree | 2253d748da7862cb7595bc9c36a1aeecfbf62e00 /src/rt/rust_builtin.cpp | |
| parent | 4738cf83b05dc02d1f7a364a6e901a1b5a18da20 (diff) | |
| download | rust-01a52d728c5058769e6c0939c57579821f238056.tar.gz rust-01a52d728c5058769e6c0939c57579821f238056.zip | |
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.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
