From 8693fcc2d78c02670d69eb7be772898b41281db7 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 2 Feb 2012 16:24:32 -0800 Subject: rt: Remove yield timers --- src/rt/rust_task.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/rt/rust_task.cpp') 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); } -- cgit 1.4.1-3-g733a5