* Wrap calls to PollScheduler._schedule_tasks() with a _schedule() method
authorZac Medico <zmedico@gentoo.org>
Sat, 12 Jul 2008 23:45:29 +0000 (23:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 12 Jul 2008 23:45:29 +0000 (23:45 -0000)
commitecc3872f02c31d0f3ce8390749a7b89f694a4485
treefc52b4fe8c96f56a0e529d8378914e5074b216f7
parent85092ca90d90b2814f5fae085737860799f28c7f
* Wrap calls to PollScheduler._schedule_tasks() with a _schedule() method
  that automatically returns early from any recursive calls that the
  _schedule_tasks() call might trigger. This makes _schedule() safe to call from
  inside exit listeners.

* Call _schedule() inside Scheduler._job_exit() to trigger a new job when
  possible.

* Fix SequentialTaskQueue._task_exit() to avoid a potential KeyError if the
  task had already been removed from self.running_tasks for some reason.

svn path=/main/trunk/; revision=11030
pym/_emerge/__init__.py