Salome HOME
Adding comments
authorYoann Audouin <yoann.audouin@edf.fr>
Tue, 4 Oct 2022 12:33:09 +0000 (14:33 +0200)
committerYoann Audouin <yoann.audouin@edf.fr>
Tue, 18 Oct 2022 13:02:19 +0000 (15:02 +0200)
src/SMESH/SMESH_Gen.cxx
src/SMESH/SMESH_MeshLocker.cxx

index 922a6df95f40039f20d4965a9251f5f6b47f4321..2a7e23af9cc1f9ab51a698f5bcae72fec78a0582 100644 (file)
@@ -161,6 +161,11 @@ SMESH_Mesh* SMESH_Gen::CreateMesh(bool theIsEmbeddedMode)
 }
 
 
+//=============================================================================
+/*!
+ * Algo to run the computation of all the submeshes of a mesh in sequentila
+ */
+//=============================================================================
 
 bool SMESH_Gen::sequentialComputeSubMeshes(
           SMESH_Mesh & aMesh,
@@ -225,8 +230,8 @@ bool SMESH_Gen::sequentialComputeSubMeshes(
 
 //=============================================================================
 /*
- * Parallel compute of a submesh
- * This function is used to pass to thread_pool
+ * compute of a submesh
+ * This function is passed to the thread pool
  */
 //=============================================================================
 const std::function<void(SMESH_subMesh*,
@@ -256,6 +261,12 @@ const std::function<void(SMESH_subMesh*,
 
 });
 
+//=============================================================================
+/*!
+ * Algo to run the computation of all the submeshes of a mesh in parallel
+ */
+//=============================================================================
+
 bool SMESH_Gen::parallelComputeSubMeshes(
           SMESH_Mesh & aMesh,
           const TopoDS_Shape & aShape,
index b90fb05293d20d921d1323df90959cba9f25a1df..d04ce9248bfaa1ac9f9019ed6daf0f2163d320a5 100644 (file)
 
 #include "SMESH_Mesh.hxx"
 
+/*
+ * When instanced will run the command Lock from a SMESH_Mesh
+ */
 SMESH_MeshLocker::SMESH_MeshLocker(SMESH_Mesh * aMesh) : _myMesh(aMesh)
 {
   _myMesh->Lock();
 }
 
+/*
+ * When freed will run the command Unlock from the SMESH_Mesh associated
+ */
 SMESH_MeshLocker::~SMESH_MeshLocker()
 {
   _myMesh->Unlock();