mozilla/rust — pull request #4323 by cpeterso (2013-01-01 04:32:42+00:00)
Title: rt: Remove dead code from schedule_task()

1. `schedule_task()` had a useless loop left over from when the `running_tasks` list was searched linearly for a runnable task.

2. `schedule_task()` asserted `this` is not null. This is not a very useful assertion, especially since the function already dereferenced `this->lock`. :)

3. `number_of_live_tasks()` accessed `running_tasks` and `blocked_tasks` lists without a lock.