mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-20 14:19:53 +08:00
0027349: XtControl_Reader is not thread-safe
Support of profiles for norms is removed Getting rid of thread-unsafe static variables. Sequence is not thread-safe. Replacing it with Vector. Updating samples due to previous changes. Resolving conflict with system environment.
This commit is contained in:
@@ -58,13 +58,12 @@ Standard_Boolean STEPConstruct_Tool::SetWS (const Handle(XSControl_WorkSession)
|
||||
myHGraph = myWS->HGraph();
|
||||
|
||||
// collect data on reading process
|
||||
Handle(XSControl_TransferReader) TR = WS->TransferReader();
|
||||
const Handle(XSControl_TransferReader) &TR = WS->TransferReader();
|
||||
if ( ! TR.IsNull() ) myTransientProcess = TR->TransientProcess();
|
||||
|
||||
// collect data on writing process
|
||||
Handle(XSControl_TransferWriter) TW = myWS->TransferWriter();
|
||||
const Handle(XSControl_TransferWriter) &TW = myWS->TransferWriter();
|
||||
if ( ! TW.IsNull() ) myFinderProcess = TW->FinderProcess();
|
||||
|
||||
return ! myTransientProcess.IsNull() && ! myFinderProcess.IsNull();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user