]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Now that making the job ready to run is an asynchronous event, the deliberate
authorAidan Van Dyk <aidan@ifax.com>
Fri, 28 Apr 2006 17:49:07 +0000 (17:49 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Fri, 28 Apr 2006 17:49:07 +0000 (17:49 +0000)
scheduler delay'ed poke has to happen when the jobcontrol completes.

faxd/faxQueueApp.c++

index 7b5c93cf70c340906c9c28fa3d5e49c9cb4c0981..ed958e92f2c53ad75492286bc228db8e25f11ac1 100644 (file)
@@ -1688,7 +1688,14 @@ faxQueueApp::ctrlJobDone(Job& job, int status)
       (iter.job().pri == job.pri && iter.job().tts <= job.tts)); iter++)
        ;
     job.insert(iter.job());
-    pokeScheduler(0);
+    /*
+     * In order to deliberately batch jobs by using a common
+     * time-to-send we need to give time for the other jobs'
+     * timers to expire and to enter the run queue before
+     * running the scheduler.  Thus the scheduler is poked
+     * with a delay.
+     */
+    pokeScheduler(1);
 }
 
 /*
@@ -2231,14 +2238,6 @@ faxQueueApp::runJob(Job& job)
 {
     job.remove();
     setReadyToRun(job, jobCtrlWait);
-    /*
-     * In order to deliberately batch jobs by using a common
-     * time-to-send we need to give time for the other jobs'
-     * timers to expire and to enter the run queue before
-     * running the scheduler.  Thus the scheduler is poked
-     * with a delay.
-     */
-    pokeScheduler(1);
 }
 
 /*