Changeset 2026 in Sophya for trunk/ArchTOIPipe/Kernel
- Timestamp:
- May 30, 2002, 1:51:26 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/toiprocessor.cc
r2021 r2026 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toiprocessor.cc,v 1.2 3 2002-05-30 07:57:04ansari Exp $5 // $Id: toiprocessor.cc,v 1.24 2002-05-30 11:51:26 ansari Exp $ 6 6 7 7 #include "toiprocessor.h" … … 267 267 268 268 void* TOIProcessor::ThreadStart(void* arg) { 269 269 270 TOIProcessor* p = (TOIProcessor*) arg; 270 271 // 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 } 272 290 p->warnPutDone(); 273 291 pthread_exit(NULL);
Note:
See TracChangeset
for help on using the changeset viewer.