rt: Add an assert to the scheduler loop

This commit is contained in:
Brian Anderson 2012-03-02 01:30:54 -08:00
parent e08f46db68
commit 8efe4b8913

View File

@ -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;