diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-08-03 15:20:38 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-08-06 09:07:40 -0700 |
| commit | 86947e47ad057d50209cf8a022f088c22089433f (patch) | |
| tree | 7f3bddbd7dd5e683da8491e59ea140036cf0b0d2 /src/rt/rust_task.cpp | |
| parent | d8e9724fb1b14a415d922431a5bc74f937c9ff38 (diff) | |
| download | rust-86947e47ad057d50209cf8a022f088c22089433f.tar.gz rust-86947e47ad057d50209cf8a022f088c22089433f.zip | |
More documentation on pipes, and moving assert in runtime.
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index ad2e8a71ae5..58a0e3eae6c 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -678,11 +678,11 @@ MUST_CHECK bool rust_task::wait_event(void **result) { void rust_task::signal_event(void *event) { - scoped_lock with(lifecycle_lock); - assert(task_state_blocked == state || task_state_running == state); + scoped_lock with(lifecycle_lock); + this->event = event; event_reject = true; if(task_state_blocked == state) { |
