X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FOSD%2FOSD_Parallel_TBB.cxx;h=9179f8dba496ae7ce399a37b378c7a1e6d509d68;hb=3068c3bb6522e950ad57bf8c7a3c48302a1e1a46;hpb=ac293bde7fe17832b54ebbb8c382db8755003446 diff --git a/src/OSD/OSD_Parallel_TBB.cxx b/src/OSD/OSD_Parallel_TBB.cxx index 43b6ec1..9179f8d 100644 --- a/src/OSD/OSD_Parallel_TBB.cxx +++ b/src/OSD/OSD_Parallel_TBB.cxx @@ -40,7 +40,7 @@ void OSD_Parallel::forEachExternal (UniversalIterator& theBegin, { const Handle(OSD_ThreadPool)& aThreadPool = OSD_ThreadPool::DefaultPool(); const Standard_Integer aNbThreads = theNbItems > 0 ? - Min (theNbItems, aThreadPool->NbDefaultThreadsToLaunch()) : -1; + aThreadPool->NbDefaultThreadsToLaunch() : -1; tbb::task_scheduler_init aScheduler (aNbThreads); tbb::parallel_for_each (theBegin, theEnd, theFunctor);