]> OCCT Git - occt-copy.git/commitdiff
DR-1225 Too many threads
authorsnn <sergey.nikonov@opencascade.com>
Thu, 5 Nov 2020 10:47:59 +0000 (13:47 +0300)
committersnn <sergey.nikonov@opencascade.com>
Thu, 5 Nov 2020 10:47:59 +0000 (13:47 +0300)
src/SelectMgr/SelectMgr_BVHThreadPool.cxx

index 9f4da57fd9693714be4ba571e3727fecf11c0c7a..faaef77d6718e5bffe0ec0babec822faa233464b 100644 (file)
@@ -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<OSD_Thread>(1, aBVHThreadsNum);
   myBVHBuildData = NCollection_Array1<BVHBuild_Data>(1, aBVHThreadsNum);