Changeset 1118 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 12/18/01 12:07:26 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MAGIC.h
r1027 r1118 17 17 // 18 18 const Int_t kCONTINUE = 2; 19 const Int_t kSKIP = 2; 19 20 20 21 // -
trunk/MagicSoft/Mars/mbase/MTask.cc
r1116 r1118 138 138 fNumExecutions = 0; 139 139 140 if (!PreProcess(plist)) 140 switch (PreProcess(plist)) 141 { 142 case kFALSE: 141 143 return kFALSE; 142 144 143 fIsPreprocessed = kTRUE; 144 return kTRUE; 145 case kTRUE: 146 fIsPreprocessed = kTRUE; 147 return kTRUE; 148 149 case kSKIP: 150 return kSKIP; 151 } 152 153 *fLog << err << dbginf << "PreProcess of " << GetDescriptor(); 154 *fLog << " returned an unknown value... aborting." << endl; 155 156 return kFALSE; 145 157 } 146 158 -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r1108 r1118 245 245 // -------------------------------------------------------------------------- 246 246 // 247 // removes a task from the list (used in PreProcess). 248 // if kIsOwner is set the task is deleted. (see SetOwner()) 249 // 250 void MTaskList::Remove(MTask *task) 251 { 252 TObject *obj = fTasks->Remove(task); 253 254 if (TestBit(kIsOwner)) 255 delete obj; 256 } 257 258 // -------------------------------------------------------------------------- 259 // 247 260 // do pre processing (before eventloop) of all tasks in the task-list 248 261 // … … 267 280 *fLog << all << task->GetName() << "... " << flush; 268 281 269 if (!task->CallPreProcess(fParList)) 282 switch (task->CallPreProcess(fParList)) 283 { 284 case kFALSE: 270 285 return kFALSE; 286 287 case kTRUE: 288 continue; 289 290 case kSKIP: 291 Remove(task); 292 continue; 293 } 294 295 *fLog << err << dbginf << "PreProcess of " << task->GetDescriptor(); 296 *fLog << " returned an unknown value... aborting." << endl; 297 return kFALSE; 271 298 } 272 299
Note:
See TracChangeset
for help on using the changeset viewer.