]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Corrections for windows
authorYOANN AUDOUIN <B61570@dsp1062659>
Wed, 6 Sep 2023 12:36:44 +0000 (14:36 +0200)
committerYOANN AUDOUIN <B61570@dsp1062659>
Wed, 6 Sep 2023 12:36:44 +0000 (14:36 +0200)
src/SMESH/SMESH_ParallelMesh.hxx

index 3241a522baec53b55f547a53f3a1fbb2972b19fd..7deb3210cefecd9da646d078eda8d9c816e8e0a0 100644 (file)
@@ -55,9 +55,14 @@ class SMESH_EXPORT SMESH_ParallelMesh: public SMESH_Mesh
   void wait() override {_pool->join(); DeletePoolThreads(); InitPoolThreads(); };
 
   // Thread Pool
+#ifndef WIN32
   void InitPoolThreads() {_pool = new boost::asio::thread_pool(GetPoolNbThreads());};
-  void DeletePoolThreads() {delete _pool;};
   boost::asio::thread_pool* GetPool() {return _pool;};
+#else
+  void InitPoolThreads() {};
+  void* GetPool() {return NULL;};
+#endif
+  void DeletePoolThreads() {delete _pool;};
   int GetPoolNbThreads();
 
   // Temporary folder
@@ -112,10 +117,10 @@ class SMESH_EXPORT SMESH_ParallelMesh: public SMESH_Mesh
   // Mutex for multhitreading write in SMESH_Mesh
 #ifndef WIN32
   boost::mutex _my_lock;
-#endif
-  boost::filesystem::path tmp_folder;
   // thread pool for computation
   boost::asio::thread_pool *     _pool = nullptr;
+#endif
+  boost::filesystem::path tmp_folder;
 
   int _method = ParallelismMethod::MultiThread;