mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0033643: Data Exchange, Step Import - Multithread loading model issue
Workaround for isolate loading entities functionality Needs to update logic to process in different threads different model three
This commit is contained in:
@@ -42,10 +42,17 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Standard_Mutex.hxx>
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
#define CHRONOMESURE
|
||||
#endif
|
||||
|
||||
namespace
|
||||
{
|
||||
static Standard_Mutex THE_GLOBAL_READ_MUTEX;
|
||||
}
|
||||
|
||||
void StepFile_Interrupt(Standard_CString theErrorMessage, const Standard_Boolean theIsFail)
|
||||
{
|
||||
if (theErrorMessage == NULL)
|
||||
@@ -109,7 +116,7 @@ static Standard_Integer StepFile_Read (const char* theName,
|
||||
#endif
|
||||
|
||||
sout << " ... STEP File Read ...\n";
|
||||
|
||||
Standard_Mutex::Sentry aLocker(THE_GLOBAL_READ_MUTEX);
|
||||
Standard_Integer nbhead, nbrec, nbpar;
|
||||
aFileDataModel.GetFileNbR (&nbhead,&nbrec,&nbpar); // renvoi par lex/yacc
|
||||
Handle(StepData_StepReaderData) undirec =
|
||||
|
Reference in New Issue
Block a user