FACT++  1.0
template<class T>
void StateMachineAsio< T >::HandleTrigger ( const boost::system::error_code &  error)
inlineprivate

Definition at line 12 of file StateMachineAsio.h.

References StateMachineAsio< T >::Execute(), and StateMachineAsio< T >::Stop().

Referenced by StateMachineAsio< T >::Run().

13  {
14  // 125: Operation canceled (bs::error_code(125, bs::system_category))
15  if (error && error!=boost::asio::error::basic_errors::operation_aborted)
16  return;
17 
18  fTrigger.expires_from_now(boost::posix_time::microseconds(10000));
19  fTrigger.async_wait(boost::bind(&StateMachineAsio::HandleTrigger,
20  this, boost::asio::placeholders::error));
21 
22  if (!T::HandleNewState(Execute(), 0, "by HandleTrigger()"))
23  Stop(-1);
24  }
boost::asio::deadline_timer fTrigger
void HandleTrigger(const boost::system::error_code &error)
void Stop(int code=0)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: