Adding comments

This commit is contained in:
Yoann Audouin 2022-10-04 14:33:09 +02:00
parent effd6e2229
commit e2a0dc7815
2 changed files with 19 additions and 2 deletions

View 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( bool SMESH_Gen::sequentialComputeSubMeshes(
SMESH_Mesh & aMesh, SMESH_Mesh & aMesh,
@ -225,8 +230,8 @@ bool SMESH_Gen::sequentialComputeSubMeshes(
//============================================================================= //=============================================================================
/* /*
* Parallel compute of a submesh * compute of a submesh
* This function is used to pass to thread_pool * This function is passed to the thread pool
*/ */
//============================================================================= //=============================================================================
const std::function<void(SMESH_subMesh*, 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( bool SMESH_Gen::parallelComputeSubMeshes(
SMESH_Mesh & aMesh, SMESH_Mesh & aMesh,
const TopoDS_Shape & aShape, const TopoDS_Shape & aShape,

View File

@ -29,11 +29,17 @@
#include "SMESH_Mesh.hxx" #include "SMESH_Mesh.hxx"
/*
* When instanced will run the command Lock from a SMESH_Mesh
*/
SMESH_MeshLocker::SMESH_MeshLocker(SMESH_Mesh * aMesh) : _myMesh(aMesh) SMESH_MeshLocker::SMESH_MeshLocker(SMESH_Mesh * aMesh) : _myMesh(aMesh)
{ {
_myMesh->Lock(); _myMesh->Lock();
} }
/*
* When freed will run the command Unlock from the SMESH_Mesh associated
*/
SMESH_MeshLocker::~SMESH_MeshLocker() SMESH_MeshLocker::~SMESH_MeshLocker()
{ {
_myMesh->Unlock(); _myMesh->Unlock();