[mkgmap-dev] [PATCH v7] make maps in parallel
From Mark Burton markb at ordern.com on Mon May 18 08:59:24 BST 2009
Hi Steve, > Hi > > > Unfortunately, I have just discovered another issue which is the static > > int nextPriority in GType - this needs to be changed to one instance > > per map but at the moment I can't work out what to use as a key to > > select the correct value for each map being processed concurrently. If > > you have any thoughts on that, please say. > > I think it doesn't matter what the priority is, just that values that are > obtained later are higher. So adding synchronized to getNextPriority() > should do it. What is the nature of the problem you see? I haven't yet seen any problems but just found the (potential) issue by searching for static data items that could cause problems when running stuff in parallel. As it happens, I have now coded around it by serialising the loading of the OSM data. It makes almost zero difference to the run-time so I am happy to leave GType as-is. Cheers, Mark
- Previous message: [mkgmap-dev] [PATCH v7] make maps in parallel
- Next message: [mkgmap-dev] [PATCH v7] make maps in parallel
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list