Unsupervise tasks before the scheduler kills them. Unblock before yield->fail

This commit is contained in:
Brian Anderson
2011-09-14 17:05:35 -07:00
parent 69eda46af8
commit a0ad9a42cd
3 changed files with 9 additions and 3 deletions

View File

@@ -255,6 +255,9 @@ rust_task::yield(size_t time_in_us) {
name, this, time_in_us);
if (killed) {
if (blocked()) {
unblock();
}
killed = false;
fail();
}