about summary refs log tree commit diff
path: root/src/rt/rust.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-30 13:54:37 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-31 19:51:29 -0700
commit218dd084697ed2ce58812ef9e69cdc86cb83bcf2 (patch)
tree171eaf77a6e1d8c4af168bcb17d2ba02d9f41f83 /src/rt/rust.cpp
parent771c1be6a64225d416ad99a860f1c8d34ce3a18b (diff)
downloadrust-218dd084697ed2ce58812ef9e69cdc86cb83bcf2.tar.gz
rust-218dd084697ed2ce58812ef9e69cdc86cb83bcf2.zip
rt: Introduce rust_sched_reaper
This just moves the responsibility for joining with scheduler threads
off to a worker thread. This will be needed when we allow tasks to be
scheduled on the main thread.
Diffstat (limited to 'src/rt/rust.cpp')
-rw-r--r--src/rt/rust.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp
index d1adf41118f..00657f8ec0a 100644
--- a/src/rt/rust.cpp
+++ b/src/rt/rust.cpp
@@ -93,7 +93,7 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) {
     root_task->start((spawn_fn)main_fn, NULL, args->args);
     root_task = NULL;
 
-    int ret = kernel->wait_for_schedulers();
+    int ret = kernel->wait_for_exit();
     delete args;
     delete kernel;
     delete srv;