Changeset 13909 for trunk


Ignore:
Timestamp:
05/26/12 12:30:26 (12 years ago)
Author:
tbretz
Message:
Du buffer events outside of the loop. Note that if you stay to long outside of the loop, you might run into memory problems. This is necessary to buffer service events before the loop is started.
File:
1 edited

Legend:

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

    r13834 r13909  
    313313bool StateMachineImp::PostEvent(const EventImp &evt, const char *ptr, size_t siz)
    314314{
    315     if (GetCurrentState()<0 || GetCurrentState()==kSM_FatalError)
     315    if (/*GetCurrentState()<0 ||*/ GetCurrentState()==kSM_FatalError)
    316316    {
    317317        Out() << kYellow << "State<0 or FatalError: Event ignored." << endl;
     
    361361bool StateMachineImp::PostEvent(const EventImp &evt)
    362362{
    363     if (GetCurrentState()<0 || GetCurrentState()==kSM_FatalError)
     363    if (/*GetCurrentState()<0 ||*/ GetCurrentState()==kSM_FatalError)
    364364    {
    365365        Out() << kYellow << "State<0 or FatalError: Event ignored." << endl;
Note: See TracChangeset for help on using the changeset viewer.