mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
Adding comments
This commit is contained in:
parent
effd6e2229
commit
e2a0dc7815
@ -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,
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user