From 200a2ded3245eb0a1ca7b265ce83adba16d75b97 Mon Sep 17 00:00:00 2001 From: Ben Blum Date: Thu, 12 Jul 2012 02:42:56 -0400 Subject: Fix linked failure with root taskgroup to kill the runtime too. --- 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 55f1f8bf17e..f648ed8d78c 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -863,6 +863,11 @@ rust_task_kill_other(rust_task *task) { /* Used for linked failure */ task->kill(); } +extern "C" void +rust_task_kill_all(rust_task *task) { + task->fail_sched_loop(); +} + extern "C" rust_cond_lock* rust_create_cond_lock() { return new rust_cond_lock(); -- cgit 1.4.1-3-g733a5