Salome HOME
Disabling parallel compute for windows
[modules/smesh.git] / src / SMESH / SMESH_Gen.cxx
index 0d59428af2f569df698a11901a4806b462c633fd..4297420f8e9951218c4d3d665aa70497e9459f2a 100644 (file)
 //
 
 //#define CHRONODEF
-
+//
+#ifndef DISABLE_PARAMESH
 #include <boost/asio.hpp>
+#endif
 #include "SMESH_Gen.hxx"
 
 #include "SMESH_DriverMesh.hxx"
@@ -348,9 +350,15 @@ bool SMESH_Gen::parallelComputeSubMeshes(
       smToCompute->ComputeStateEngine( SMESH_subMesh::CHECK_COMPUTE_STATE );
       continue;
     }
+#ifdef DISABLE_PARASMESH
+    compute_function(smToCompute, computeEvent,
+                      shapeSM, aShapeOnly, allowedSubShapes,
+                      aShapesId);
+#else
     boost::asio::post(*(aMesh._pool), std::bind(compute_function, smToCompute, computeEvent,
                       shapeSM, aShapeOnly, allowedSubShapes,
                       aShapesId));
+#endif
   }
 
   // Waiting for the thread for Solids to finish
@@ -361,7 +369,6 @@ bool SMESH_Gen::parallelComputeSubMeshes(
   return ret;
 };
 
-
 //=============================================================================
 /*
  * Compute a mesh