[Tile-serving] [osm2pgsql] Make more of osm2pgsql threading aware (#110)
apmon
notifications at github.com
Sun Dec 15 20:45:28 UTC 2013
> }
>
> - return 0;
> + return ctx;
> #else
> fprintf(stderr,"Error: Could not init lua tag transform, as lua support was not compiled into this version\n");
> return 1;
No, I think this is correct.
If everything goes through correctly with the initialisation, it passes back a pointer to the LUA thread context which can then be used in consequent functions to safely interact with the lua interpreter in a thread safe manor, as there is a different initialised context per thread.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/110/files#r8356171
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20131215/24a5be0a/attachment.html>
More information about the Tile-serving
mailing list