Re: [Boost-bugs] [Boost C++ Libraries] #9280: handling deferred events

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9280: handling deferred events
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-19 07:51:45


#9280: handling deferred events
---------------------------------------+----------------------
  Reporter: Dmitry Banschikov <me@…> | Owner: chenry
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: msm
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
---------------------------------------+----------------------

Comment (by Dmitry Banschikov <me@…>):

 Yes, with rev. 86759 output of test case is more expected.
 Actually, I need all deferred events be cleared on exit from state.
 For such behaviour I use this workaround:
 {{{
         template <class Event, class Fsm>
         void on_exit(Event const&, Fsm& fsm)
         {
             std::cout << "On exit" << std::endl;
             op_.reset();
             fsm.template
 get_state<test_machine_front_t::st_connected&>().get_deferred_queue().clear();
         }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9280#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC