#include #include #include #include #include #include #include "StateMachine.hpp" int main() { std::cout<<"\n\nPress any key and then to exit\n\n"< scheduler(true); boost::statechart::fifo_scheduler<>::processor_handle handle = scheduler.create_processor (); scheduler.initiate_processor(handle); boost::thread aThread(boost::bind(&boost::statechart::fifo_scheduler<>::operator(),&scheduler, 0)); std::cin >> key; scheduler.destroy_processor(handle); scheduler.terminate(); aThread.join(); return 0; }