1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0027814: Parallelize BRepCheck_Analyzer

Change BRepCheck_Analyzer::Perform algorithm from recursion to 'for' loop
Add parallelization to BRepCheck_Analyzer::Perform
Add '-parallel' option to checkshape command to use parallelization. Default mode is single-thread.

mutex as Handle
This commit is contained in:
asuraven
2021-06-21 19:15:09 +03:00
committed by bugmaster
parent f1c034f905
commit 000c21fa0c
39 changed files with 1615 additions and 1506 deletions

View File

@@ -19,6 +19,7 @@
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_ErrorHandler.hxx>
#include <NCollection_Shared.hxx>
#if defined(_WIN32)
#include <windows.h>
@@ -169,6 +170,8 @@ private:
#endif
};
typedef NCollection_Shared<Standard_Mutex> Standard_HMutex;
// Implementation of the method Unlock is inline, since it is
// just a shortcut to system function
inline void Standard_Mutex::Unlock ()