[mkgmap-dev] Commit r4136: fix missing img file in gmapsupp when --max-jobs option is not given
From Mike Baggaley mike at tvage.co.uk on Wed Mar 14 16:30:30 GMT 2018
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 at hotmail.com] Sent: 13 March 2018 13:53 To: Development list for mkgmap <mkgmap-dev at 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 at lists.mkgmap.org.uk> im Auftrag von svn commit <svn at mkgmap.org.uk> Gesendet: Dienstag, 13. März 2018 14:44:03 An: mkgmap-svn at lists.mkgmap.org.uk; mkgmap-dev at 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 at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- A non-text attachment was scrubbed... Name: maxjobs-error.patch Type: application/octet-stream Size: 4802 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20180314/643584d5/attachment-0001.obj>
- Previous message: [mkgmap-dev] Commit r4136: fix missing img file in gmapsupp when --max-jobs option is not given
- Next message: [mkgmap-dev] Commit r4136: fix missing img file in gmapsupp when --max-jobs option is not given
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list