mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
Refcount tasks in packets to avoid races.
Revert "Once again, revert "Use pipes in compiletest"" Fixes #3098
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user