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


Ignore:
Timestamp:
Jan 2, 2004, 12:31:36 AM (22 years ago)
Author:
ansari
Message:

Suite modifs pour piapp multi-thread - introduction de lock lors de la mise a jour de la fenetre ObjMgr par NamedObjMgr - Reza 1 Jan 2004

File:
1 edited

Legend:

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

    r2489 r2490  
    251251// RedirectStdOutErr(true);  pas par defaut
    252252 
    253 mObjMgr = new NamedObjMgr;
    254 mCmd = new PIACmd(mObjMgr, this);
     253mObjMgr = new NamedObjMgr(true);
     254mCmd = new PIACmd(this);
    255255
    256256// Pas trop de message de la part de NamedObjMgr
     
    322322
    323323SetReady();
     324fg_glsynlock = false;
    324325}
    325326
     
    418419}
    419420
    420 bool fg_gls_lock = false;
     421
    421422while (mStop) {
    422423  thr_glsyn.lock(); //  <ZThread>
     424  fg_glsynlock = true;
    423425  while (XtAppPending(*appctx) != 0) {
    424426    XtAppNextEvent(*appctx, &evt);
    425427    XtDispatchEvent(&evt);
    426428  }
     429  fg_glsynlock = false;
    427430  thr_glsyn.unlock(); //  <ZThread>
    428431  //  thr_glsyn.wait();
Note: See TracChangeset for help on using the changeset viewer.