Changeset 2489 in Sophya for trunk/SophyaPI/PIext/piacmd.cc


Ignore:
Timestamp:
Dec 29, 2003, 1:41:57 AM (22 years ago)
Author:
ansari
Message:

Tentatives pour regler les conflits/plantage ds spiapp multi-thread/pb en particulier avec PIACmd::ShowMessage() appele lorsque traceon - Reza 29/12/2003

File:
1 edited

Legend:

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

    r2486 r2489  
    344344{
    345345  Commander::SetCurrentPrompt(pr);
    346   if (mImgApp) mImgApp->GetConsole()->SetPrompt(pr);
     346  if (mImgApp) {
     347    ZSync(mImgApp->getMutex());
     348    mImgApp->GetConsole()->SetPrompt(pr);
     349  }
    347350}
    348351
     
    350353void PIACmd::ShowMessage(const char * msg, int att)
    351354{
     355  /*
     356  Il faut faire quelque chose pour gerer correctement ca en multithread
    352357  char va = (att == 0) ? 0 : PIVA_Magenta;
    353   if (mImgApp) mImgApp->GetConsole()->AddStr(msg, va);
    354 }
     358  if (mImgApp) {
     359    ZSync(mImgApp->getMutex());
     360    mImgApp->GetConsole()->AddStr(msg, va);
     361  }
     362  */
     363Commander::ShowMessage(msg, att);
     364}
Note: See TracChangeset for help on using the changeset viewer.