]> OCCT Git - occt.git/commit
0028931: Eliminate dependency from TBB in OSD_Parallel header
authoroan <oan@opencascade.com>
Fri, 15 Sep 2017 14:22:30 +0000 (17:22 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 6 Oct 2017 07:28:10 +0000 (10:28 +0300)
commit00af0ebb9d8e2f67b27719d7f7128d7eebb2ae65
tree6a4629a119ac20626fb0576527b6a26b678b082a
parentb92bc5ab7c8027bda61f3d175784290955d2f33f
0028931: Eliminate dependency from TBB in OSD_Parallel header

Implementation of methods OSD_Parallel::For() and ForEach() is moved to CXX files to avoid direct dependency of client code that uses OSD_Parallel on TBB headers, and necessity to link with TBB explicitly.
Runtime polymorphism (virtual methods) is used to hide implementation (TBB or threads-based).
src/BOPCol/BOPCol_Parallel.hxx
src/OSD/FILES
src/OSD/OSD_Parallel.cxx
src/OSD/OSD_Parallel.hxx
src/OSD/OSD_Parallel_TBB.cxx [new file with mode: 0644]
src/OSD/OSD_Parallel_Threads.cxx [new file with mode: 0644]
src/QABugs/QABugs_19.cxx
src/Select3D/Select3D_SensitivePrimitiveArray.cxx
src/StdPrs/StdPrs_WFShape.cxx