Changeset 7554 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 03/01/06 17:20:46 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTask.h
r5875 r7554 22 22 class MTask : public MInputStreamID 23 23 { 24 public: 25 enum { 26 kAccStandard = 0, 27 kAccDontCount = BIT(1), 28 kAccDontTime = BIT(2), 29 kAccDontReset = BIT(3) 30 }; 31 24 32 private: 25 33 TList *fListOfBranches; //! List of Branch names for auto enabeling scheme … … 32 40 TStopwatch *fStopwatch; //! Count the execution time and number of executions 33 41 UInt_t fNumExec0; //! Total number of executions at PreProcess 42 Byte_t fAccelerator; //! 34 43 35 44 virtual Int_t PreProcess(MParList *pList); … … 80 89 void SetDisplay(MStatusDisplay *d); 81 90 91 // Acceleration Control 92 virtual void SetAccelerator(Byte_t acc=kAccStandard) { fAccelerator=acc; } 93 Byte_t GetAccelerator() const { return fAccelerator; } 94 Bool_t HasAccelerator(Byte_t acc) const { return fAccelerator&acc; } 95 82 96 // Function for parallel executions 83 97 static TString AddSerialNumber(const char *str, UInt_t num) { TString s(str); if (num==0) return s; s += ";"; s += num; return s; } -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r7064 r7554 158 158 } 159 159 160 void MTaskList::SetAccelerator(Byte_t acc) 161 { 162 fTasks->ForEach(MTask, SetAccelerator)(acc); 163 MTask::SetAccelerator(acc); 164 } 165 160 166 // -------------------------------------------------------------------------- 161 167 // … … 553 559 { 554 560 fParList->SetBit(MParList::kIsProcessing); 555 fParList->Reset(); 561 if (!HasAccelerator(kAccDontReset)) 562 fParList->Reset(); 556 563 } 557 564 -
trunk/MagicSoft/Mars/mbase/MTaskList.h
r7064 r7554 42 42 void SetLogStream(MLog *log); 43 43 void SetDisplay(MStatusDisplay *d); 44 void SetAccelerator(Byte_t acc=kAccStandard); 44 45 45 46 Bool_t AddToListBefore(MTask *task, const MTask *where, const char *tType="All");
Note:
See TracChangeset
for help on using the changeset viewer.