about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-04-01 16:38:42 -0700
committerBrian Anderson <banderson@mozilla.com>2012-04-01 16:57:14 -0700
commitfb528dd7d613964e05dd682a6a98980a1ebdb4d6 (patch)
tree4db5b394786b692e75c7bc08fb880b7d3f235431 /src/rt/rust_kernel.cpp
parent0a5e9d45e172e6aeecefe02e668e454a870bca56 (diff)
downloadrust-fb528dd7d613964e05dd682a6a98980a1ebdb4d6.tar.gz
rust-fb528dd7d613964e05dd682a6a98980a1ebdb4d6.zip
rt: Allow some schedulers to stay alive even without tasks to execute
Diffstat (limited to 'src/rt/rust_kernel.cpp')
-rw-r--r--src/rt/rust_kernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp
index c7625537f40..5062e4de3c3 100644
--- a/src/rt/rust_kernel.cpp
+++ b/src/rt/rust_kernel.cpp
@@ -69,7 +69,7 @@ rust_kernel::create_scheduler(size_t num_threads) {
         id = max_sched_id++;
         K(srv, id != INTPTR_MAX, "Hit the maximum scheduler id");
         sched = new (this, "rust_scheduler")
-            rust_scheduler(this, srv, num_threads, id);
+            rust_scheduler(this, srv, num_threads, id, true);
         bool is_new = sched_table
             .insert(std::pair<rust_sched_id,
                               rust_scheduler*>(id, sched)).second;