const Standard_CString theFileName,
const Standard_CString theLangExt)
{
+ Standard_Mutex::Sentry aSentry(theMutex);
TCollection_AsciiString aLangExt (theLangExt != NULL ? theLangExt : "");
if (aLangExt.IsEmpty())
{
#include <ShapeProcess_OperLibrary.hxx>
#include <Standard_Type.hxx>
#include <Standard_Version.hxx>
+#include <Standard_Mutex.hxx>
#include <StepAP214_Protocol.hxx>
#include <STEPControl_ActorRead.hxx>
#include <STEPControl_ActorWrite.hxx>
STEPControl_Controller::STEPControl_Controller()
: XSControl_Controller("STEP", "step")
{
- RWHeaderSection::Init();
-
myAdaptorProtocol = new StepAP214_Protocol();
- RWStepAP214::Init(Handle(StepAP214_Protocol)::DownCast(myAdaptorProtocol));
+
+ static Standard_Mutex aPars;
+ {
+ Standard_Mutex::Sentry aLock(aPars);
+ RWHeaderSection::Init();
+ RWStepAP214::Init(Handle(StepAP214_Protocol)::DownCast(myAdaptorProtocol));
+ }
Handle(STEPControl_ActorWrite) ActWrite = new STEPControl_ActorWrite;
myAdaptorWrite = ActWrite;