From 792068d871f2a8f7184a6f109db1d65c73bf63da Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 18 Nov 2011 14:45:48 -0800 Subject: rt: Remove unblock call from rust_task::yield --- src/rt/rust_task.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 848086dd368..39f8488e784 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -272,14 +272,10 @@ rust_task::yield(size_t time_in_us) { name, this, time_in_us); if (killed) { - // Receive may have blocked before yielding - unblock(); + A(sched, !blocked(), "Shouldn't be blocked before failing"); fail(); } - // FIXME: If we are blocked, and get killed right here then we may never - // know it. - yield_timer.reset_us(time_in_us); // Return to the scheduler. -- cgit 1.4.1-3-g733a5