Make thread-locked access to stxxl containers

From stxxl FAQ: "you should not share a data structure between
threads (without implementing proper locking yourself)."
The access to name_char_data can be implicitly parallelized
if _GLIBCXX_PARALLEL is defined and invalidate local-thread iterators.
This commit is contained in:
Michael Krasnyk
2016-10-11 23:02:20 +02:00
committed by Daniel J. Hofmann
parent 19eec48207
commit 7753845f5c
2 changed files with 10 additions and 3 deletions
@@ -113,7 +113,7 @@ struct InternalExtractorEdge
{
return InternalExtractorEdge(MAX_OSM_NODEID,
MAX_OSM_NODEID,
0,
SPECIAL_NODEID,
WeightData(),
false,
false,