From: snn Date: Thu, 5 Nov 2020 10:47:59 +0000 (+0300) Subject: DR-1225 Too many threads X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=78f8ea1a7e693c5efdf37bae661c83e637119cd6;p=occt-copy.git DR-1225 Too many threads --- diff --git a/src/SelectMgr/SelectMgr_BVHThreadPool.cxx b/src/SelectMgr/SelectMgr_BVHThreadPool.cxx index 9f4da57fd9..faaef77d67 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 = theNbThreads > 0 ? theNbThreads : OSD_Parallel::NbLogicalProcessors() > 1 ? OSD_Parallel::NbLogicalProcessors() - 1 : 1; + Standard_Integer aBVHThreadsNum = 1; //theNbThreads > 0 ? theNbThreads : OSD_Parallel::NbLogicalProcessors() > 1 ? OSD_Parallel::NbLogicalProcessors() - 1 : 1; myBVHThreads = NCollection_Array1(1, aBVHThreadsNum); myBVHBuildData = NCollection_Array1(1, aBVHThreadsNum);