]> OCCT Git - occt-copy.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)
committerkgv <kgv@opencascade.com>
Sat, 14 Aug 2021 18:37:16 +0000 (21:37 +0300)
commitdde7c61f1380b0efe03afdd0684abdba10fc0f0c
tree0b7ed992db6cd5c0c692ebae4a57955bc184fae3
parentb4112bf761840c7d339f48b6ca25bdba6f1a36f3
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