Refcount tasks in packets to avoid races.

Revert "Once again, revert "Use pipes in compiletest""

Fixes #3098
This commit is contained in:
Eric Holk
2012-08-03 18:57:43 -07:00
parent 86947e47ad
commit 9f287c211e
5 changed files with 61 additions and 39 deletions
-3
View File
@@ -678,9 +678,6 @@ MUST_CHECK bool rust_task::wait_event(void **result) {
void
rust_task::signal_event(void *event) {
assert(task_state_blocked == state ||
task_state_running == state);
scoped_lock with(lifecycle_lock);
this->event = event;