about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-07-13 12:25:36 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-07-13 12:25:36 -0700
commit01fc165517a404748a8050960f4c1606daac80b9 (patch)
treea6b0cc590e49f59f435c7cdc077c2aa8d2948448 /src/rt/rust_task.cpp
parentece2d27205a7af7978d866b25cece95c786e24a0 (diff)
downloadrust-01fc165517a404748a8050960f4c1606daac80b9.tar.gz
rust-01fc165517a404748a8050960f4c1606daac80b9.zip
Attempt to correct buggy win32 timer code (causing tinderbox failures).
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index e0ae1ff367f..b8fa6bd72eb 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -162,7 +162,7 @@ rust_task::start(uintptr_t spawnee_fn,
 
     ctx.call((void *)task_start_wrapper, a, sp);
 
-    yield_timer.reset(0);
+    yield_timer.reset_us(0);
     transition(&sched->newborn_tasks, &sched->running_tasks);
 }
 
@@ -188,7 +188,7 @@ rust_task::yield(size_t nargs, size_t time_in_us) {
 
     // FIXME: what is nargs for, and is it safe to ignore?
 
-    yield_timer.reset(time_in_us);
+    yield_timer.reset_us(time_in_us);
 
     // Return to the scheduler.
     ctx.next->swap(ctx);