about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorEric Holk <eric.holk@gmail.com>2012-08-03 18:57:43 -0700
committerEric Holk <eric.holk@gmail.com>2012-08-06 09:10:19 -0700
commit9f287c211eb3a92ae3aa31b6f767bb9998f2f147 (patch)
tree49a88b8e24ed1668f81292e1b6dcb9fec6202409 /src/rt/rust_task.cpp
parent86947e47ad057d50209cf8a022f088c22089433f (diff)
downloadrust-9f287c211eb3a92ae3aa31b6f767bb9998f2f147.tar.gz
rust-9f287c211eb3a92ae3aa31b6f767bb9998f2f147.zip
Refcount tasks in packets to avoid races.
Revert "Once again, revert "Use pipes in compiletest""

Fixes #3098
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index 58a0e3eae6c..061e87ebff8 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -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;