Changeset 3366 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc


Ignore:
Timestamp:
Oct 30, 2007, 1:57:40 PM (18 years ago)
Author:
ansari
Message:

Tentative pour regler le probleme de blocage de piapp suite a affichage de la fefenetre de gestion d'objets.

1/ Protection dans NamedObjMgr() pour eviter deadlock de mutex (ds NamedObjMgr::UpdateObjMgrWindow() en particulier)
2/ Introduction de la classe SOpExObj (fichier piacmd.h .cc) pour execution d'operations sur objets, initiees depuis la boucle d'evts, dans un thread separe.

Reza , 30/10/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r3355 r3366  
    237237fg_exc_cmd = false;
    238238mCmd = NULL;  // Avant d'appeler UpdateStatResource() si PIACmd non cree
     239mSopex = NULL;
    239240UpdateStatResourceInfo();
    240241resupd_periodic = new SIA_RU__Periodic(this);
     
    263264mObjMgr = new NamedObjMgr(true);
    264265mCmd = new PIACmd(this);
     266mSopex = new SOpExObj(this);
    265267
    266268// Pas trop de message de la part de NamedObjMgr
     
    468470// Demarrage du thread de l'interpreteur
    469471CmdInterpreter()->start();
    470 
     472// Demarrage du thread de l'executeur de commandes simples
     473getSOpExObj()->start();
    471474
    472475
     
    20182021  case 10270 :
    20192022    if (mCurWdg) {
    2020       int oid = mCurWdg->UserFlag();
    2021       //RZDEL-Mai2005      DeleteWidget(mCurWdg);
    2022       mObjMgr->DelObj_Id(oid);
     2023      string ssob = "DEL ";
     2024      ssob += mCurWdg->Nom();
     2025      getSOpExObj()->AddOpe(ssob);   
    20232026      }
    20242027    break;
Note: See TracChangeset for help on using the changeset viewer.