Changeset 2026 in Sophya for trunk/ArchTOIPipe/Kernel


Ignore:
Timestamp:
May 30, 2002, 1:51:26 PM (23 years ago)
Author:
ansari
Message:

Correction de pb divers (3) - Reza 30/5/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/toiprocessor.cc

    r2021 r2026  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toiprocessor.cc,v 1.23 2002-05-30 07:57:04 ansari Exp $
     5// $Id: toiprocessor.cc,v 1.24 2002-05-30 11:51:26 ansari Exp $
    66
    77#include "toiprocessor.h"
     
    267267
    268268void* TOIProcessor::ThreadStart(void* arg) {
     269
    269270  TOIProcessor* p = (TOIProcessor*) arg;
    270271  //  cout << p->name << " new thread running " << pthread_self() << endl;
    271   p->run();
     272  try {
     273    p->run();
     274  }
     275  catch (PThrowable & exc) {
     276    cerr << "\n TOIProcessor::ThreadStart() Catched Exception TOIProcessor@"
     277         << hex << p << dec << "\n" 
     278         << (string)typeid(exc).name()
     279         << " - Msg= " << exc.Msg() << endl;
     280  }
     281  catch (const std::exception & sex) {
     282    cerr << "\n TOIProcessor::ThreadStart() Catched std::exception TOIProcessor@"
     283         << hex << p << dec << "\n" 
     284         << (string)typeid(sex).name() << endl;
     285  }
     286  catch (...) {
     287    cerr << "\n TOIProcessor::ThreadStart() Catched ... exception TOIProcessor@"
     288         << hex << p << dec << endl;
     289  }
    272290  p->warnPutDone();
    273291  pthread_exit(NULL);
Note: See TracChangeset for help on using the changeset viewer.