I would second configuring GDAL with thread support by default if pthread library is available, and turn it off only when --without-threads is explicitely passed.
This would be consistant with how proj.4 works for example. Le lundi 30 août 2010 18:56:26, Dane Springmeyer a écrit : > In the Mapnik library we open a GDALDataset per thread, for each feature > query, but have been seeing crashes when rendering large geotiffs. > > I've assumed that GDALDataset was fairly threadsafe in recent revisions as > per > (http://trac.osgeo.org/gdal/wiki/FAQMiscellaneous#IstheGDALlibrarythread-s > afe), but recently learned that you must force --with-threads during > configure to get this working. > > Once I rebuilt gdal --with-threads all my troubles went away. > > Are there caveats or other reasons not to pass --with-threads during the > configure stage. E.g. should is not be made default some time in the > future? > > Thanks, > > Dane > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
