mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use mutex when import well paths
A shared data structure (RifWellPathImporter) is used when importing well paths. Add mutex to ensure single use of shared data structure.
This commit is contained in:
@@ -45,7 +45,8 @@ void RimFileWellPathDataLoader::loadData( caf::PdmObject& pdmObject, const QStri
|
||||
auto* fWPath = dynamic_cast<RimFileWellPath*>( &pdmObject );
|
||||
if ( fWPath && !fWPath->filePath().isEmpty() )
|
||||
{
|
||||
QString errorMessage;
|
||||
QMutexLocker lock( &m_mutex );
|
||||
QString errorMessage;
|
||||
if ( !fWPath->readWellPathFile( &errorMessage, m_wellPathImporter.get(), false ) )
|
||||
{
|
||||
RiaLogging::warning( errorMessage );
|
||||
|
||||
Reference in New Issue
Block a user