diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-08-03 11:43:10 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-08-03 12:04:18 -0700 |
| commit | 01ca0d1f680cf5aab5d1a81fea9de56d591f6658 (patch) | |
| tree | 7d35cad7d5865a16d912e14c6539f59bfe501532 /src/rt/rust_task.cpp | |
| parent | 9e689666110e459e63f5bf4b64011fc81cc7fca2 (diff) | |
| download | rust-01ca0d1f680cf5aab5d1a81fea9de56d591f6658.tar.gz rust-01ca0d1f680cf5aab5d1a81fea9de56d591f6658.zip | |
Be more defensive in pipes (#3098)
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 061e87ebff8..ad2e8a71ae5 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -680,6 +680,9 @@ void rust_task::signal_event(void *event) { scoped_lock with(lifecycle_lock); + assert(task_state_blocked == state || + task_state_running == state); + this->event = event; event_reject = true; if(task_state_blocked == state) { |
