]> OCCT Git - occt.git/commit
0028931: Eliminate dependency from TBB in OSD_Parallel header
authoroan <oan@opencascade.com>
Mon, 16 Jan 2023 11:57:41 +0000 (14:57 +0300)
committeroan <oan@opencascade.com>
Mon, 16 Jan 2023 11:57:41 +0000 (14:57 +0300)
commit61e28109925c6e4fb0dfaab1fd70656be53b0284
treec388138488a57c714038ef919fd1c3ccf1420bdf
parentdf410a6192bb881f153133acc5e480b216c6246b
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