about summary refs log tree commit diff
path: root/src/rt/rust_scheduler.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-02 18:23:01 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-02 18:23:01 -0800
commitcd774fc5fab0791c3463ab192de9e0900904b460 (patch)
tree2e68ad6b5a17895086b6c12b99ddb5b1093a84c8 /src/rt/rust_scheduler.cpp
parentb1a090c7c4393781a92814431a5d32ffed4e57aa (diff)
downloadrust-cd774fc5fab0791c3463ab192de9e0900904b460.tar.gz
rust-cd774fc5fab0791c3463ab192de9e0900904b460.zip
rt: Stop waking up the scheduler on a timer
Diffstat (limited to 'src/rt/rust_scheduler.cpp')
-rw-r--r--src/rt/rust_scheduler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_scheduler.cpp b/src/rt/rust_scheduler.cpp
index 2d5e84f531e..0e559d56060 100644
--- a/src/rt/rust_scheduler.cpp
+++ b/src/rt/rust_scheduler.cpp
@@ -229,7 +229,7 @@ rust_scheduler::start_main_loop() {
             DLOG(this, task,
                  "all tasks are blocked, scheduler id %d yielding ...",
                  id);
-            lock.timed_wait(10);
+            lock.wait();
             reap_dead_tasks();
             DLOG(this, task,
                  "scheduler %d resuming ...", id);