From: Yoann Audouin Date: Wed, 26 Oct 2022 14:20:19 +0000 (+0200) Subject: Replacing DISABLE_PARASMESH with WIN32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aed4aa79d00d59e1710a10011632f0a1a5c72d8d;p=modules%2Fsmesh.git Replacing DISABLE_PARASMESH with WIN32 --- diff --git a/src/SMESH/SMESH_Gen.cxx b/src/SMESH/SMESH_Gen.cxx index 4297420f8..61d4fc010 100644 --- a/src/SMESH/SMESH_Gen.cxx +++ b/src/SMESH/SMESH_Gen.cxx @@ -28,7 +28,7 @@ //#define CHRONODEF // -#ifndef DISABLE_PARAMESH +#ifndef WIN32 #include #endif #include "SMESH_Gen.hxx" @@ -350,7 +350,7 @@ bool SMESH_Gen::parallelComputeSubMeshes( smToCompute->ComputeStateEngine( SMESH_subMesh::CHECK_COMPUTE_STATE ); continue; } -#ifdef DISABLE_PARASMESH +#ifdef WIN32 compute_function(smToCompute, computeEvent, shapeSM, aShapeOnly, allowedSubShapes, aShapesId); diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index edff014cd..fb373c593 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -239,7 +239,7 @@ SMESH_Mesh::~SMESH_Mesh() int result=pthread_create(&thread, NULL, deleteMeshDS, (void*)_meshDS); #endif } -#ifndef DISABLE_PARASMESH +#ifndef WIN32 if(_pool) DeletePoolThreads(); #endif diff --git a/src/SMESH/SMESH_Mesh.hxx b/src/SMESH/SMESH_Mesh.hxx index deed18d6b..a59f7228a 100644 --- a/src/SMESH/SMESH_Mesh.hxx +++ b/src/SMESH/SMESH_Mesh.hxx @@ -50,7 +50,7 @@ #include #include -#ifndef DISABLE_PARASMESH +#ifndef WIN32 #include #include #endif @@ -391,7 +391,7 @@ class SMESH_EXPORT SMESH_Mesh // Parallel computation functions -#ifdef DISABLE_PARASMESH +#ifdef WIN32 void Lock() {}; void Unlock() {}; @@ -420,7 +420,7 @@ class SMESH_EXPORT SMESH_Mesh // Temporary folder used during parallel Computation boost::filesystem::path tmp_folder; - #ifndef DISABLE_PARASMESH + #ifndef WIN32 boost::asio::thread_pool * _pool = nullptr; //thread pool for computation #endif @@ -472,7 +472,7 @@ protected: TCallUp* _callUp; // Mutex for multhitreading write in SMESH_Mesh -#ifndef DISABLE_PARASMESH +#ifndef WIN32 boost::mutex _my_lock; #endif int _NbThreads=0;