struct MyStateMachine : sc::asynchronous_state_machine<MyStateMachine, State1, Scheduler>, TimerList
{
- typedef std::list<Timer *> *timList;
MyStateMachine(my_context ctx) : my_base(ctx) {
printf("%s\n", __FUNCTION__);
}
- timList returnList()
- {
- printf("%s\n", __FUNCTION__);
- return &timeouts;
- }
};
struct MyStateMachine2 : sc::asynchronous_state_machine<MyStateMachine2, State3, Scheduler>, TimerList
{
- typedef std::list<Timer *> *timList;
MyStateMachine2(my_context ctx) : my_base(ctx) {
printf("%s\n", __FUNCTION__);
}
- timList returnList()
- {
- printf("%s\n", __FUNCTION__);
- return &timeouts;
- }
};
struct Ev1 : sc::event< Ev1 > {