mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0030329: Move BRepMesh_IncAllocator to NCollection package
NCollection_IncAllocator has been extended with optional mutex allocation (disabled by default).
This commit is contained in:
@@ -14,11 +14,12 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <BRepMeshData_Model.hxx>
|
||||
|
||||
#include <BRepMeshData_Face.hxx>
|
||||
#include <BRepMeshData_Edge.hxx>
|
||||
#include <BRepMesh_IncAllocator.hxx>
|
||||
#include <BRepMesh_OrientedEdge.hxx>
|
||||
#include <BRepMesh_Vertex.hxx>
|
||||
#include <NCollection_IncAllocator.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// Function: Constructor
|
||||
@@ -27,10 +28,11 @@
|
||||
BRepMeshData_Model::BRepMeshData_Model (const TopoDS_Shape& theShape)
|
||||
: IMeshData_Model (theShape),
|
||||
myMaxSize (0.),
|
||||
myAllocator (new BRepMesh_IncAllocator(IMeshData::MEMORY_BLOCK_SIZE_HUGE)),
|
||||
myAllocator (new NCollection_IncAllocator (IMeshData::MEMORY_BLOCK_SIZE_HUGE)),
|
||||
myDFaces (256, myAllocator),
|
||||
myDEdges (256, myAllocator)
|
||||
{
|
||||
myAllocator->SetThreadSafe();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user