[GRASS-SVN] r57962 - grass/trunk/raster/r.mapcalc
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 9 00:47:11 PDT 2013
Author: huhabla
Date: 2013-10-09 00:47:11 -0700 (Wed, 09 Oct 2013)
New Revision: 57962
Modified:
grass/trunk/raster/r.mapcalc/map3.c
Log:
Fix for ticket #2074 as usggested by Glynn
Modified: grass/trunk/raster/r.mapcalc/map3.c
===================================================================
--- grass/trunk/raster/r.mapcalc/map3.c 2013-10-09 07:40:05 UTC (rev 57961)
+++ grass/trunk/raster/r.mapcalc/map3.c 2013-10-09 07:47:11 UTC (rev 57962)
@@ -521,6 +521,12 @@
{
int i;
+ /* We need to reduce the number of worker threads to one, to
+ * avoid that several threads access a single map for reading
+ * at the same time. The raster3d library is not thread safe.
+ * */
+ putenv("WORKERS=1");
+
for (i = 0; i < num_maps; i++)
setup_map(&maps[i]);
}
More information about the grass-commit
mailing list