Changeset 16736


Ignore:
Timestamp:
06/05/13 21:50:32 (12 years ago)
Author:
tbretz
Message:
Of course we cannot call Execute of the base class, but have to make sure the overwritten function is called.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/StateMachineAsio.h

    r16735 r16736  
    2020                                        this, boost::asio::placeholders::error));
    2121
    22         if (!HandleNewState(T::Execute(), 0, "by HandleTrigger()"))
     22        if (!HandleNewState(Execute(), 0, "by HandleTrigger()"))
    2323            Stop(-1);
    2424    }
     
    3737    }
    3838
     39    int Execute()=0;
     40
    3941    int Run(bool)
    4042    {
     
    4951        while (run_one())
    5052        {
    51             if (!HandleNewState(T::Execute(), 0, "by Run()"))
     53            if (!HandleNewState(Execute(), 0, "by Run()"))
    5254                Stop(-1);
    5355        }
Note: See TracChangeset for help on using the changeset viewer.