0029935: Foundation Classes - introduce OSD_ThreadPool class defining a thread pool
[occt.git] / src / BRepMesh / BRepMesh_FastDiscret.cxx
index 1d45389..56e7b5f 100644 (file)
@@ -120,7 +120,7 @@ void BRepMesh_FastDiscret::Perform(const TopoDS_Shape& theShape)
     aFaces.push_back(aFace);
   }
 
-  OSD_Parallel::ForEach(aFaces.begin(), aFaces.end(), *this, !myParameters.InParallel);
+  OSD_Parallel::ForEach(aFaces.begin(), aFaces.end(), *this, !myParameters.InParallel, (Standard_Integer )aFaces.size());
 }