Ignore:
Timestamp:
05/28/12 10:46:55 (12 years ago)
Author:
tbretz
Message:
Enable to buffer all events per default until the main event loop has been started.
File:
1 edited

Legend:

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

    r13909 r13951  
    122122StateMachineImp::StateMachineImp(ostream &out, const std::string &name)
    123123    : MessageImp(out), fName(name), fCurrentState(kSM_NotReady),
    124     fRunning(false), fExitRequested(0)
     124    fRunning(false), fBufferEvents(true), fExitRequested(0)
    125125{
    126126    SetDefaultStateNames();
     
    319319    }
    320320
    321     if (IsRunning())
     321    if (IsRunning() || fBufferEvents)
    322322    {
    323323        Event *event = new Event(evt, ptr, siz);
     
    367367    }
    368368
    369     if (IsRunning())
     369    if (IsRunning() || fBufferEvents)
    370370        PushEvent(new Event(evt));
    371371    else
Note: See TracChangeset for help on using the changeset viewer.