From 2e2951305d66feea833ec2b05af8102b1b5affa9 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 13 Jul 2011 13:43:35 -0700 Subject: Remove obsolete nargs counts from runtime. --- src/rt/rust_task.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index b8fa6bd72eb..a358b4a6ed3 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -177,17 +177,15 @@ rust_task::grow(size_t n_frame_bytes) } void -rust_task::yield(size_t nargs) { - yield(nargs, 0); +rust_task::yield() { + yield(0); } void -rust_task::yield(size_t nargs, size_t time_in_us) { +rust_task::yield(size_t time_in_us) { LOG(this, task, "task %s @0x%" PRIxPTR " yielding for %d us", name, this, time_in_us); - // FIXME: what is nargs for, and is it safe to ignore? - yield_timer.reset_us(time_in_us); // Return to the scheduler. @@ -203,7 +201,7 @@ rust_task::kill() { // Note the distinction here: kill() is when you're in an upcall // from task A and want to force-fail task B, you do B->kill(). - // If you want to fail yourself you do self->fail(upcall_nargs). + // If you want to fail yourself you do self->fail(). LOG(this, task, "killing task %s @0x%" PRIxPTR, name, this); // Unblock the task so it can unwind. unblock(); @@ -216,7 +214,7 @@ rust_task::kill() { } void -rust_task::fail(size_t nargs) { +rust_task::fail() { // See note in ::kill() regarding who should call this. DLOG(sched, task, "task %s @0x%" PRIxPTR " failing", name, this); backtrace(); @@ -224,7 +222,6 @@ rust_task::fail(size_t nargs) { unblock(); if (this == sched->root_task) sched->fail(); - // run_after_return(nargs, rust_unwind_glue); if (supervisor) { DLOG(sched, task, "task %s @0x%" PRIxPTR @@ -237,7 +234,7 @@ rust_task::fail(size_t nargs) { } void -rust_task::gc(size_t nargs) +rust_task::gc() { // FIXME: not presently implemented; was broken by rustc. DLOG(sched, task, -- cgit 1.4.1-3-g733a5