Salome HOME
Restoring orignal compute + cleanup
[modules/smesh.git] / src / SMESH / SMESH_Mesh.hxx
index 2b8632abb0534da9056eb41f82e79285380c6110..a8107920c90ec7e7212c848caba4318f322824fa 100644 (file)
@@ -393,8 +393,15 @@ class SMESH_EXPORT SMESH_Mesh
   int GetNbThreads(){return _NbThreads;};
   void SetNbThreads(int nbThreads){_NbThreads=nbThreads;};
 
+  void InitPoolThreads(){_pool = new ctpl::thread_pool(_NbThreads);};
+
+  bool IsParallel(){return _NbThreads > 0;}
+
   // Temporary folder used during parallel Computation
   boost::filesystem::path tmp_folder;
+  // TODO: Replace by number of thread
+  ctpl::thread_pool *     _pool = nullptr; //thread pool for computation
+
 
 private: