mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0030618: Modeling Algorithms, BOPTools_Parallel - avoid using map for thread-local contexts without TBB
OSD_Parallel::ToUseOcctThreads() - new flag allowing to use OCCT threads implementation even when compiled with TBB (for testing). Added new command dparallel for managing default Thread Pool. OSD_Parallel::For() now avoid creation of universal iterator in simplest case. BOPTools_Parallel - eliminated redundant typedefs/explicit instantiations of templates. Added functor using array of per-thread context instead of a map.
This commit is contained in:
@@ -716,12 +716,6 @@ private: //! @name Fields
|
||||
|
||||
typedef NCollection_Vector<FillGap> VectorOfFillGap;
|
||||
|
||||
typedef BOPTools_Functor <FillGap, VectorOfFillGap> FillGapFunctor;
|
||||
|
||||
typedef BOPTools_Cnt <FillGapFunctor, VectorOfFillGap> FillGapCnt;
|
||||
|
||||
//=======================================================================
|
||||
|
||||
//=======================================================================
|
||||
// function: RemoveFeatures
|
||||
// purpose: Remove features by filling the gaps by extension of the
|
||||
@@ -762,7 +756,7 @@ void BOPAlgo_RemoveFeatures::RemoveFeatures()
|
||||
}
|
||||
|
||||
// Perform the reconstruction of the adjacent faces
|
||||
FillGapCnt::Perform(myRunParallel, aVFG);
|
||||
BOPTools_Parallel::Perform (myRunParallel, aVFG);
|
||||
|
||||
// Even if the history is not requested, it is necessary to track:
|
||||
// - The solids modification after each feature removal to find
|
||||
|
Reference in New Issue
Block a user