FACT++  1.0
template<class T>
StateMachineAsio< T >::StateMachineAsio ( std::ostream &  out,
const std::string &  server 
)
inline

Definition at line 75 of file StateMachineAsio.h.

75  :
76  T(out, server), boost::asio::io_service::work(static_cast<boost::asio::io_service&>(*this)),
77  fTrigger(static_cast<boost::asio::io_service&>(*this))
78  {
79  // ba::io_service::work is a kind of keep_alive for the loop.
80  // It prevents the io_service to go to stopped state, which
81  // would prevent any consecutive calls to run()
82  // or poll() to do nothing. reset() could also revoke to the
83  // previous state but this might introduce some overhead of
84  // deletion and creation of threads and more.
85  }
boost::asio::deadline_timer fTrigger