diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-02 01:30:54 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-05 19:39:56 -0800 |
| commit | 8efe4b89137646c5315677b029d4158424c126cc (patch) | |
| tree | 7140848ad3ee4056b75a2f4541c0575d575a324a /src/rt/rust_task_thread.cpp | |
| parent | e08f46db68b43334e5932ac5eac308ce74f0771e (diff) | |
| download | rust-8efe4b89137646c5315677b029d4158424c126cc.tar.gz rust-8efe4b89137646c5315677b029d4158424c126cc.zip | |
rt: Add an assert to the scheduler loop
Diffstat (limited to 'src/rt/rust_task_thread.cpp')
| -rw-r--r-- | src/rt/rust_task_thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp index 57164a97c0f..5e396badd62 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -247,7 +247,8 @@ rust_task_thread::start_main_loop() { "all tasks are blocked, scheduler id %d yielding ...", id); lock.wait(); - reap_dead_tasks(); + A(this, dead_tasks.length() == 0, + "Tasks should only die after running"); DLOG(this, task, "scheduler %d resuming ...", id); continue; |
