From: apo Date: Tue, 22 Nov 2005 11:59:59 +0000 (+0000) Subject: To pass into the threads pointers not references X-Git-Tag: BR-D5-38-2003_D2005-24-11~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7499fbdfc7f5f2a2aa4732bbb4c5b10a0898baf6;p=modules%2Fvisu.git To pass into the threads pointers not references --- diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index 415ad9dc..778dfd08 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -397,9 +397,9 @@ namespace struct TUpdateObjBrowser: public SALOME_Event { int myStudyId; - CORBA::Boolean& myIsDone; + CORBA::Boolean* myIsDone; TUpdateObjBrowser(const int theStudyId, - CORBA::Boolean& theIsDone): + CORBA::Boolean* theIsDone): myStudyId(theStudyId), myIsDone(theIsDone) {} @@ -418,7 +418,7 @@ namespace if (myStudyId == aCStudy->StudyId()) { MESSAGE("Result_i::updateObjectBrowser"); anApp->updateObjectBrowser(); - myIsDone = true; + *myIsDone = true; break; } } @@ -434,7 +434,7 @@ namespace void BuildGroups(VISU::Result_i* theResult, VISU_Convertor* theInput, - CORBA::Boolean& theIsDone, + CORBA::Boolean* theIsDone, SALOMEDS::Study_var theStudyDocument, const std::string& theRefFatherEntry) { @@ -532,7 +532,7 @@ namespace void BuildFields(VISU::Result_i* theResult, VISU_Convertor* theInput, - CORBA::Boolean& theIsDone, + CORBA::Boolean* theIsDone, SALOMEDS::Study_var theStudyDocument, const std::string& theRefFatherEntry) { @@ -637,12 +637,12 @@ namespace void BuildMinMax(VISU::Result_i* theResult, VISU_Convertor* theInput, - CORBA::Boolean& theIsDone) + CORBA::Boolean* theIsDone) { TMemManager aMemManager(theResult); theInput->BuildMinMax(); - theIsDone = true; + *theIsDone = true; } @@ -650,8 +650,8 @@ namespace void BuildMinMaxFields(VISU::Result_i* theResult, VISU_Convertor* theInput, - CORBA::Boolean& theFieldsIsDone, - CORBA::Boolean& theMinMaxIsDone, + CORBA::Boolean* theFieldsIsDone, + CORBA::Boolean* theMinMaxIsDone, SALOMEDS::Study_var theStudyDocument, const std::string& theRefFatherEntry) { @@ -690,8 +690,8 @@ VISU::Result_i boost::thread aThread(boost::bind(&BuildMinMaxFields, this, myInput, - myIsFieldsDone, - myIsMinMaxDone, + &myIsFieldsDone, + &myIsMinMaxDone, myStudyDocument, aRefFatherEntry)); } @@ -700,7 +700,7 @@ VISU::Result_i boost::thread aThread(boost::bind(&BuildGroups, this, myInput, - myIsGroupsDone, + &myIsGroupsDone, myStudyDocument, aRefFatherEntry)); } @@ -722,17 +722,17 @@ VISU::Result_i BuildFields(this, myInput, - myIsFieldsDone, + &myIsFieldsDone, myStudyDocument, aRefFatherEntry); BuildMinMax(this, myInput, - myIsMinMaxDone); + &myIsMinMaxDone); BuildGroups(this, myInput, - myIsGroupsDone, + &myIsGroupsDone, myStudyDocument, aRefFatherEntry);