Changeset 10586 for trunk/FACT++


Ignore:
Timestamp:
05/04/11 20:38:40 (14 years ago)
Author:
tbretz
Message:
Changed the logic in Run() in a way that fExitRequeted is reset at the end of Run. In that way we can also catch exit requsts which were set before Run() was even called.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/StateMachineImp.cc

    r10498 r10586  
    10271027    }
    10281028
    1029     fRunning       = !dummy;
    1030     fExitRequested = 0;
     1029    fRunning = !dummy;
    10311030
    10321031    SetCurrentState(kSM_Ready, "by Run()");
     
    10641063    SetCurrentState(kSM_NotReady, "due to return from Run().");
    10651064
    1066     return fExitRequested-1;
     1065    const int exitcode = fExitRequested-1;
     1066
     1067    // Prepare for next call
     1068    fExitRequested = 0;
     1069
     1070    return exitcode;
    10671071}
    10681072
Note: See TracChangeset for help on using the changeset viewer.