about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-11-18 14:45:48 -0800
committerBrian Anderson <banderson@mozilla.com>2011-11-18 14:45:48 -0800
commit792068d871f2a8f7184a6f109db1d65c73bf63da (patch)
tree4250b4b01f7837ef34f05d9be8c53e89533f82f6 /src/rt/rust_task.cpp
parent0f339b481a8ae255f012f2218c8f5b5fc3d451ce (diff)
downloadrust-792068d871f2a8f7184a6f109db1d65c73bf63da.tar.gz
rust-792068d871f2a8f7184a6f109db1d65c73bf63da.zip
rt: Remove unblock call from rust_task::yield
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp6
1 files changed, 1 insertions, 5 deletions
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.