|
Boost Users : |
From: Andreas Huber (ahd6974-spamgroupstrap_at_[hidden])
Date: 2007-01-20 05:58:31
Hi Oliver
Oliver.Kowalke_at_[hidden] wrote:
> Hello,
> Is it possible to delay the handling of an event?
>
> If I've three states X, Y and Z; initial state is X.
> State Y is entered if X receives event y1.
> State Z is entered if X receives event z1.
> X is entered if Y receives event y2.
> Y is entered if Z receives event z2.
>
> If Y is entered then it executes a function which will generate event
> y2 during ist processing (function will be executed in another thread
> - thread passes event y2 to state machine).
> It is possible that event z1 is passed to the state machine before
> event y2.
>
> How can I delay processing of event z1 until y2 event handling has
> taken place?
How about adding a z1 deferral reaction to Y, see
<http://www.boost-consulting.com/boost/libs/statechart/doc/tutorial.html#DeferringEvents>?
Regards,
-- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.
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