Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost::MSM: Transition Priority
From: christophe.j.henry_at_[hidden]
Date: 2015-03-17 12:19:18


Hi,

>I tried your suggestion, and only this did work.
>
>struct OnlyIfNoDeferred
>{
>template<class Event, class Fsm, class SourceState, class TargetState>
>bool operator()(Event const &, Fsm & aFsm, SourceState &, TargetState &)
>{
>size_t s_mq = aFsm.get_message_queue().size();
>size_t s_dq = aFsm.get_deferred_queue().size();
>return aFsm.get_message_queue().empty();
>}
>};
>
>s_mq = 1
>s_dq = 0
>
>This functor does now work. I just answer and ask again, because i thought
>that the defered queue should be size=1 and not the message queue.... Is
>this a bug or is this intended behaviour?

Sorry, I tried with the develop branch version not 1.57.
It is a bug, wich I coincidentally fixed last week in the develop branch, it
really has to be the deferred queue, though for your case it probably
matters little.

HTH,
Christophe


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