Boost logo

Boost Users :

Subject: Re: [Boost-users] [Statechart] How to decide between post_eventand process_event atrun time ?
From: rgreene62 (richard.greene_at_[hidden])
Date: 2014-07-22 13:14:42


One approach that works for my application, that uses a single subclass of
state_machine, is to override (i.e. hide) the base
state_Machine::process_event with a version that simply sets an
'is_processing' flag before calling the base process_event, and clears it
afterwards. Then other methods can call post_event if is_processing is
true, and process_event otherwise.

--
View this message in context: http://boost.2283326.n4.nabble.com/Statechart-How-to-decide-between-post-event-and-process-event-atrun-time-tp2572919p4665455.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net