Changeset 2454 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 11/03/03 15:41:36 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r2438 r2454 75 75 #include <TTime.h> // TTime 76 76 #include <TFile.h> // gFile 77 #include <TThread.h> // TThread::Self() 77 78 #include <TDatime.h> // TDatime 78 79 #include <TSystem.h> // gSystem … … 372 373 fProgress->SetPosition(num/fNumEvents); 373 374 374 // 375 // Handle GUI events (display changes) 376 // 375 376 // FIXME: This is a workaround, because TApplication::Run is not 377 // thread safe against ProcessEvents. We assume, that if 378 // we are not in the Main-Thread ProcessEvents() is 379 // called by the TApplication Event Loop... 380 if (!TThread::Self()/*gApplication->InheritsFrom(TRint::Class())*/) 381 { 382 // 383 // Handle GUI events (display changes) 384 // 377 385 #if ROOT_VERSION_CODE < ROOT_VERSION(3,02,06) 378 gSystem->ProcessEvents();386 gSystem->ProcessEvents(); 379 387 #else 380 // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents381 if (gApplication->InheritsFrom(TRint::Class()))382 {383 388 if (fDisplay) 384 389 gSystem->ProcessEvents(); … … 386 391 if (fProgress) 387 392 gClient->ProcessEventsFor(fProgress); 388 }389 393 #endif 394 } 390 395 391 396 return rc; … … 485 490 //fProgress->SetPosition(maxcnt>0 ? TMath::Min(maxcnt, entries) : entries); 486 491 fProgress->SetPosition(1); 487 // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents 488 if (gApplication->InheritsFrom(TRint::Class())) 492 493 // FIXME: This is a workaround, because TApplication::Run is not 494 // thread safe against ProcessEvents. We assume, that if 495 // we are not in the Main-Thread ProcessEvents() is 496 // called by the TApplication Event Loop... 497 if (!TThread::Self()/*gApplication->InheritsFrom(TRint::Class())*/) 489 498 { 490 499 #if ROOT_VERSION_CODE < ROOT_VERSION(3,02,06) -
trunk/MagicSoft/Mars/mbase/MTask.h
r2206 r2454 71 71 virtual void PrintStatistics(const Int_t lvl=0, Bool_t title=kFALSE) const; 72 72 73 UInt_t GetNumExecutions() { return fNumExecutions; }73 UInt_t GetNumExecutions() const { return fNumExecutions; } 74 74 75 75 virtual Bool_t ReInit(MParList *pList); -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r2206 r2454 308 308 if (!task->ReInit(pList?pList:fParList)) 309 309 { 310 *fLog << err << "ERROR - ReInit if Task " << task->GetDescriptor() << "failed." << endl;310 *fLog << err << "ERROR - ReInit of Task '" << task->GetDescriptor() << "' failed." << endl; 311 311 return kFALSE; 312 312 }
Note:
See TracChangeset
for help on using the changeset viewer.