Changeset 2947 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Apr 26, 2006, 6:14:05 PM (19 years ago)
Author:
ansari
Message:

ajout bloc gestion d'exception dans Reveil::run() pour tenter de faire marcher stopthr (envoi de SIGUSR1) sur Linux et Mac - Reza 26/4/2006

File:
1 edited

Legend:

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

    r2944 r2947  
    416416  {
    417417    while (!_fgstop) {
    418       usleep(2000);
    419       _app->LockMutex();
    420       bool fgb = false;
    421       if (_app->CheckPendingEvents() != 0)  fgb = true;
    422       _app->UnlockMutex(fgb);
     418      try {
     419        usleep(2000);
     420        _app->LockMutex();
     421        bool fgb = false;
     422        if (_app->CheckPendingEvents() != 0)  fgb = true;
     423        _app->UnlockMutex(fgb);
     424      }
     425      catch ( PThrowable & exc ) {
     426        cout << "Reveil::run() Exception catched Msg= " <<  exc.Msg() << endl;
     427      }
     428     
    423429    }
    424430  }
Note: See TracChangeset for help on using the changeset viewer.