Fixed deadlock in the scheduler caused by condition variables.

This commit is contained in:
Michael Bebenita
2010-08-09 08:06:08 -07:00
parent 4641fcef61
commit 5917ca3519
4 changed files with 13 additions and 11 deletions

View File

@@ -556,9 +556,6 @@ rust_task::wakeup(rust_cond *from)
A(dom, cond == from, "Cannot wake up blocked task on wrong condition.");
transition(&dom->blocked_tasks, &dom->running_tasks);
// TODO: Signaling every time the task is awaken is kind of silly,
// do this a nicer way.
dom->_progress.signal();
I(dom, cond == from);
cond = NULL;
}