[WebKit-devel] branches/KDE/4.4/kdelibs/kio/kio

David Faure faure at kde.org
Thu Feb 4 20:02:30 CET 2010


On Thursday 04 February 2010, Dawit Alemayehu wrote:
> +    /*
> +      If startTimerDelayed is true, we still have jobs could not be
> scheduled +      due to limit enforcements. In order to avoid high CPU
> usage, however, we +      start the slaveTimer after 1 sec. Otherwise, the
> above while loop will be +      run in a tight loop and will peg the CPU.
> See BR# 224857... +    */
> +    if (startTimerDelayed) {
> +       kDebug(7006) << "Rescheduling remaining jobs immediately...";
> +       startTimerDelayed = false;
> +       slaveTimer.start(0);
> +    }

The comment says "after 1 sec" but the code says start(0); what do I miss?

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).


More information about the WebKit-devel mailing list