amaKode busy waits with nothing to do
Brought to you by:
htrd
amaKode uses a polling loop to add new jobs and collect finished ones. It does this even when there is nothing to do. This keeps the processor busy when nothing is happening and makes python appear high on the powertop list of offenders. The attached patch prevents amaKode from polling in this way when there are no active jobs. It waits forever until amarok notifies it of a job.
Please test carefully.
(C) Bruce Duncan 2008
Released under the same license as amakode
Patch to select without timeout when there are no jobs to reap.