
Hi Mike, thanks, will try the patch tomorrow. Just to make sure: I've tried it on my laptop and on my PC and both did not re-execute the task. I assumed that's because it has the isDone() property. Do you see different results? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Mike Baggaley <mike@tvage.co.uk> Gesendet: Mittwoch, 14. März 2018 17:30:30 An: 'Development list for mkgmap' Betreff: Re: [mkgmap-dev] Commit r4136: fix missing img file in gmapsupp when --max-jobs option is not given Hi Gerd, it was intentional that the first task was removed from the list of tasks to be performed, so that it didn't run twice. However, I hadn't realised that there was some mop up code that copied the filename at the end of the task, so that bit didn't get called for the first task. The attached patch fixes the problem. I received notification of your update that fixes the problem by removing the line futures.remove(0); whilst looking into it. This patch moves the task result handling to a new function, that is called both by the first task and by the subsequent multithreaded tasks, and does not require the first task to be run twice. I've also added a test of the number of processors before attempting to determine how many processors to use, so that the max-jobs code won't get executed if the system only has one processor. Regards, Mike -----Original Message----- From: Gerd Petermann [mailto:gpetermann_muenchen@hotmail.com] Sent: 13 March 2018 13:53 To: Development list for mkgmap <mkgmap-dev@lists.mkgmap.org.uk> Subject: Re: [mkgmap-dev] Commit r4136: fix missing img file in gmapsupp when --max-jobs option is not given Mike, please review, I have no idea why the original patch contained the line futures.remove(0); I should have noticed this error earlier :-( The problem always happened when creating a gmapsupp without specifying max-jobs option. I assume you just wanted to make sure that the job is not executed twice? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von svn commit <svn@mkgmap.org.uk> Gesendet: Dienstag, 13. März 2018 14:44:03 An: mkgmap-svn@lists.mkgmap.org.uk; mkgmap-dev@lists.mkgmap.org.uk Betreff: [mkgmap-dev] Commit r4136: fix missing img file in gmapsupp when --max-jobs option is not given Version mkgmap-r4136 was committed by gerd on Tue, 13 Mar 2018 fix missing img file in gmapsupp when --max-jobs option is not given http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4136 _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev