Boost logo

Boost Users :

From: Philippe DAVID (philippe.a.david_at_[hidden])
Date: 2007-11-13 10:32:41


Hi,
I have a method in which I want to post/process an event. The thing is, this
method can be called from outside the state machine (so I need to call
process_event), or indirectly by a reaction of the state machine (in this case
I must call post_event since process_event is not reentrant).

I don't want to write 2 distinct methods to do this (one that calls post, and
the other process), I would much rather prefer adding a 'if' in my method that
tells me if I have to call process_event or post_event (if I'm being called
indirectly by the state machine or not). Is there a way to do this with
statechart ?

regards,
Philippe


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