From: eap Date: Mon, 27 Feb 2006 08:25:25 +0000 (+0000) Subject: "specific SALOME for ALLIANCES". fix pb that ALLIANCES hangs up during study saving X-Git-Tag: T2_2_9pre~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4b2c472d59fa3cde62eca190b8060c70cae48ec;p=modules%2Fkernel.git "specific SALOME for ALLIANCES". fix pb that ALLIANCES hangs up during study saving --- 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)