Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3963: state_machine<>::post_event is not protected
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-04 13:26:20
#3963: state_machine<>::post_event is not protected
---------------------------------------------+------------------------------
Reporter: Arne Babnik <boost@â¦> | Owner: andreas_huber69
Type: Bugs | Status: closed
Milestone: Boost 1.43.0 | Component: statechart
Version: Boost 1.42.0 | Severity: Optimization
Resolution: fixed | Keywords:
---------------------------------------------+------------------------------
Comment (by boost@â¦):
Multiple state machines can interact with each other quite nicely if they
derive from asynchronous_state_machine instead of state_machine. Despite
the name they may also run in the same thread context or without any
separate thread at all. This also avoids the need to deal with possible
recursions. I used to use synchronous state machines at first, but
switched over to asynchronous state machines due to this.
The only disadvantage to me is that it is more difficult to access the
state machine from the outside, e.g. to retrieve the current machine state
for debugging purposes.
Read the part on asynchronous state machines in the tutorial for further
information:
http://www.boost.org/doc/libs/1_43_0/libs/statechart/doc/tutorial.html#AsynchronousStateMachines
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3963#comment:6> 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:04 UTC