about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-02 16:24:32 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-02 18:10:24 -0800
commit8693fcc2d78c02670d69eb7be772898b41281db7 (patch)
treee17cbc9c8458f9e8b487f9c8a976ee9441b752e6 /src/rt/rust_task.cpp
parent7f2980b7498453019aa349aae9c94b90b920e2a6 (diff)
downloadrust-8693fcc2d78c02670d69eb7be772898b41281db7.tar.gz
rust-8693fcc2d78c02670d69eb7be772898b41281db7.zip
rt: Remove yield timers
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index 4acef16a209..017de8dca1b 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -395,7 +395,6 @@ rust_task::start(spawn_fn spawnee_fn,
 
 void rust_task::start()
 {
-    yield_timer.reset_us(0);
     transition(&sched->newborn_tasks, &sched->running_tasks);
     sched->lock.signal();
 }
@@ -407,8 +406,6 @@ rust_task::yield(size_t time_in_us, bool *killed) {
         *killed = true;
     }
 
-    yield_timer.reset_us(time_in_us);
-
     // Return to the scheduler.
     ctx.next->swap(ctx);
 
@@ -630,7 +627,7 @@ rust_task::backtrace() {
 
 bool rust_task::can_schedule(int id)
 {
-    return yield_timer.has_timed_out() &&
+    return
         running_on == -1 &&
         (pinned_on == -1 || pinned_on == id);
 }