From f4b2c472d59fa3cde62eca190b8060c70cae48ec Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 27 Feb 2006 08:25:25 +0000 Subject: [PATCH] "specific SALOME for ALLIANCES". fix pb that ALLIANCES hangs up during study saving --- src/SALOMEDS/SALOMEDS_StudyManager_i.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx index daab18900..730b658ce 100644 --- a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx @@ -802,7 +802,12 @@ void SALOMEDS_StudyManager_i::_SaveAs(const char* aUrl, if(aCompSpecificSO->FindAttribute(aGeneric, "AttributeInteger")) { anInteger = SALOMEDS::AttributeInteger::_narrow(aGeneric); anInteger->SetValue(-1); - while(anInteger->Value() < 0) { sleep(2); if(++aTimeOut > AUTO_SAVE_TIME_OUT_IN_SECONDS) break; } + while(anInteger->Value() < 0) { + SALOMEDS::unlock(); + sleep(2); + SALOMEDS::lock(); + if(++aTimeOut > AUTO_SAVE_TIME_OUT_IN_SECONDS) break; + } } // if(aCompSpecificSO->FindAttribute(anInteger, "AttributeInteger")) } // if(!CORBA::is_nil(aCompSpecificSO)) } // if (strcmp(aRow[0], componentDataType) == 0) -- 2.39.2