Changeset 2416 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 10/20/03 21:32:30 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
r2386 r2416 75 75 #include <TObjArray.h> // TObjArray 76 76 #include <TPostScript.h> // TPostScript 77 78 #include <TRint.h> // gApplication, TRint::Class() 77 79 #include <TInterpreter.h> // gInterpreter 78 80 … … 374 376 375 377 // make it visible 376 gClient->ProcessEventsFor(fTab); 378 // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents 379 if (gApplication->InheritsFrom(TRint::Class())) 380 gClient->ProcessEventsFor(fTab); 377 381 } 378 382 … … 470 474 return; 471 475 fStatusBar->SetText(txt, 0); 472 gClient->ProcessEventsFor(fStatusBar); 476 // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents 477 if (gApplication->InheritsFrom(TRint::Class())) 478 gClient->ProcessEventsFor(fStatusBar); 473 479 } 474 480 … … 482 488 return; 483 489 fStatusBar->SetText(txt, 1); 484 gClient->ProcessEventsFor(fStatusBar); 490 // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents 491 if (gApplication->InheritsFrom(TRint::Class())) 492 gClient->ProcessEventsFor(fStatusBar); 485 493 } 486 494 … … 567 575 MapWindow(); 568 576 569 gSystem->ProcessEvents(); 577 // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents 578 if (gApplication->InheritsFrom(TRint::Class())) 579 gSystem->ProcessEvents(); 570 580 } 571 581 … … 732 742 733 743 // display new tab in the main frame 734 gClient->ProcessEventsFor(fTab); 744 // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents 745 if (gApplication->InheritsFrom(TRint::Class())) 746 gClient->ProcessEventsFor(fTab); 735 747 736 748 *fLog << inf << "Adding Raw Tab '" << name << "' (" << f->GetWidth() << "x"; … … 784 796 785 797 // display new tab in the main frame 786 gClient->ProcessEventsFor(fTab); 798 // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents 799 if (gApplication->InheritsFrom(TRint::Class())) 800 gClient->ProcessEventsFor(fTab); 787 801 788 802 *fLog << inf << "Adding Tab '" << name << "' (" << f->GetWidth() << "x"; … … 910 924 911 925 // display new tab in the main frame 912 gClient->ProcessEventsFor(fTab); 926 // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents 927 if (gApplication->InheritsFrom(TRint::Class())) 928 gClient->ProcessEventsFor(fTab); 913 929 914 930 *fLog << inf << "Removed Tab #" << i << " '" << name << "'" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.