fixes for c++11 threads

This commit is contained in:
Joachim Schöberl 2016-02-29 11:23:37 +01:00
parent fcac89f793
commit 5c22bd08c3

View File

@ -2139,11 +2139,11 @@ int STLGeometry :: CheckGeometryOverlapping()
{ {
Array<int> inters;
mutex inters_mutex; mutex inters_mutex;
ParallelFor( 1, GetNT()+1, [&] (int first, int next) ParallelFor( 1, GetNT()+1, [&] (int first, int next)
{ {
Array<int> inters;
for (int i=first; i<next; i++) { for (int i=first; i<next; i++) {
const STLTriangle & tri = GetTriangle(i); const STLTriangle & tri = GetTriangle(i);