mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024157: Parallelization of assembly part of BO
v0.0 I. New features: no new features II. Changes: II.1. class BRepClass3d - method: Standard_Integer BRepClass3d_SolidExplorer::OtherSegment(const gp_Pnt& P, gp_Lin& L, Standard_Real& _Par) The condition to prevent infinite loop has been added. III. Modified entities: packages: BRepClass3d Added test case bugs/modalg_5/bug24242 The phase 1 : Parallelization Building Faces. Part 1.2. Building Same Domain Faces Combined by pkv Small correction of test case for issue CR24157_3
This commit is contained in:
@@ -25,7 +25,50 @@
|
||||
#include <tbb/tbb.h>
|
||||
using namespace tbb;
|
||||
|
||||
|
||||
#endif
|
||||
#define flexible_range blocked_range
|
||||
#define flexible_for parallel_for
|
||||
|
||||
|
||||
#else // not HAVE_TBB
|
||||
|
||||
#define flexible_range serial_range
|
||||
#define flexible_for serial_for
|
||||
|
||||
//=======================================================================
|
||||
//class : serial_range
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
template <class Type> class serial_range {
|
||||
public:
|
||||
serial_range(const Type& aBegin,
|
||||
const Type& aEnd)
|
||||
: myBegin(aBegin), myEnd(aEnd) {
|
||||
}
|
||||
//
|
||||
~serial_range() {
|
||||
}
|
||||
//
|
||||
const Type& begin() const{
|
||||
return myBegin;
|
||||
}
|
||||
//
|
||||
const Type& end() const{
|
||||
return myEnd;
|
||||
};
|
||||
//
|
||||
protected:
|
||||
Type myBegin;
|
||||
Type myEnd;
|
||||
};
|
||||
|
||||
//=======================================================================
|
||||
//function : serial_for
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
template<typename Range, typename Body>
|
||||
static void serial_for( const Range& range, const Body& body ) {
|
||||
body.operator()(range);
|
||||
};
|
||||
#endif // not HAVE_TBB
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user