about summary refs log tree commit diff
path: root/src/rt/rust_kernel.h
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-08-10 12:57:53 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-10 13:02:31 -0700
commit0cd607bcbdc70d3d7ccefd5faf830cc8e5d68c86 (patch)
tree0e531d1593e88a8dd3e3f783d16257568652cf93 /src/rt/rust_kernel.h
parentf6ad0514087f985ce1c1aad126b28b8e17e2e005 (diff)
downloadrust-0cd607bcbdc70d3d7ccefd5faf830cc8e5d68c86.tar.gz
rust-0cd607bcbdc70d3d7ccefd5faf830cc8e5d68c86.zip
rt: Shutdown gracefully on failure
When the kernel fails, kill all tasks and wait for the schedulers to stop
instead of just exiting. I'm sure there are tons of lurking issues here but
this is enough to fail without leaking (at least in the absence of cleanups).
Diffstat (limited to 'src/rt/rust_kernel.h')
-rw-r--r--src/rt/rust_kernel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rt/rust_kernel.h b/src/rt/rust_kernel.h
index ff5b100445e..774f7f4d0a4 100644
--- a/src/rt/rust_kernel.h
+++ b/src/rt/rust_kernel.h
@@ -52,6 +52,8 @@ public:
     void *realloc(void *mem, size_t size);
     void free(void *mem);
 
+    void fail();
+
     int start_task_threads();
 
 #ifdef __WIN32__