diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-05 17:30:47 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-05 17:30:47 -0800 |
| commit | c04b897cb25b16b203744596bfdf50e66b3579ba (patch) | |
| tree | 6c05513f17a9d69395feb4ec420a82b8b5709b8d /src/libcore/task.rs | |
| parent | 34aa956e68e037c9ca0a1d3adf35de7b31fdd4de (diff) | |
| download | rust-c04b897cb25b16b203744596bfdf50e66b3579ba.tar.gz rust-c04b897cb25b16b203744596bfdf50e66b3579ba.zip | |
core: Resolve some FIXMEs
Diffstat (limited to 'src/libcore/task.rs')
| -rw-r--r-- | src/libcore/task.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/task.rs b/src/libcore/task.rs index 0b8abdc36a7..ec6f98fbf45 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -72,6 +72,7 @@ native mod rustrt { fn start_task(id: task, closure: *rust_closure); fn rust_task_is_unwinding(rt: *rust_task) -> bool; + fn unsupervise(); } /* Section: Types */ @@ -287,10 +288,7 @@ fn join(task_port: joinable_task) -> task_result { if _id == id { ret res } else { - // FIXME: uncomment this when extfmt is moved to core - // in a snapshot. - // fail #fmt["join received id %d, expected %d", _id, id] - fail; + fail #fmt["join received id %d, expected %d", _id, id] } } } @@ -303,7 +301,9 @@ Detaches this task from its parent in the task tree An unsupervised task will not propagate its failure up the task tree */ -fn unsupervise() { ret sys::unsupervise(); } +fn unsupervise() { + rustrt::unsupervise(); +} /* Function: currently_unwinding() |
