|
@@ -521,6 +521,12 @@ void setup_maps(void)
|
|
{
|
|
{
|
|
int i;
|
|
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++)
|
|
for (i = 0; i < num_maps; i++)
|
|
setup_map(&maps[i]);
|
|
setup_map(&maps[i]);
|
|
}
|
|
}
|