From: snn Date: Thu, 19 Nov 2020 08:44:40 +0000 (+0300) Subject: Revert "DR-1225 Too many threads" X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR0_DR-1225-DR_Dev;p=occt-copy.git Revert "DR-1225 Too many threads" This reverts commit 78f8ea1a7e693c5efdf37bae661c83e637119cd6. --- diff --git a/src/SelectMgr/SelectMgr_BVHThreadPool.cxx b/src/SelectMgr/SelectMgr_BVHThreadPool.cxx index faaef77d67..9f4da57fd9 100644 --- a/src/SelectMgr/SelectMgr_BVHThreadPool.cxx +++ b/src/SelectMgr/SelectMgr_BVHThreadPool.cxx @@ -13,7 +13,7 @@ SelectMgr_BVHThreadPool::SelectMgr_BVHThreadPool (Standard_Integer theNbThreads) myIdleEvent(Standard_True), myIsStarted(Standard_False) { - Standard_Integer aBVHThreadsNum = 1; //theNbThreads > 0 ? theNbThreads : OSD_Parallel::NbLogicalProcessors() > 1 ? OSD_Parallel::NbLogicalProcessors() - 1 : 1; + Standard_Integer aBVHThreadsNum = theNbThreads > 0 ? theNbThreads : OSD_Parallel::NbLogicalProcessors() > 1 ? OSD_Parallel::NbLogicalProcessors() - 1 : 1; myBVHThreads = NCollection_Array1(1, aBVHThreadsNum); myBVHBuildData = NCollection_Array1(1, aBVHThreadsNum);