mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-22 04:47:34 +00:00
(url-queue-run-queue): Pick the first waiting job, and not the last.
This commit is contained in:
parent
5c77c3eda3
commit
08da93f1a3
2 changed files with 7 additions and 3 deletions
|
|
@ -1,6 +1,8 @@
|
|||
2011-05-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* url-queue.el: New file.
|
||||
(url-queue-run-queue): Pick the first waiting job, and not the
|
||||
last.
|
||||
|
||||
2011-04-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
|
|
|
|||
|
|
@ -67,9 +67,11 @@ controls the level of parallelism via the
|
|||
(let ((running 0)
|
||||
waiting)
|
||||
(dolist (entry url-queue)
|
||||
(if (url-queue-start-time entry)
|
||||
(incf running)
|
||||
(setq waiting entry)))
|
||||
(cond
|
||||
((url-queue-start-time entry)
|
||||
(incf running))
|
||||
((not waiting)
|
||||
(setq waiting entry))))
|
||||
(when (and waiting
|
||||
(< running url-queue-parallel-processes))
|
||||
(setf (url-queue-start-time waiting) (float-time))
|
||||
|
|
|
|||
Loading…
Reference in a new issue