17 Mar
2015
17 Mar
'15
4:19 p.m.
Hi,
I tried your suggestion, and only this did work.
struct OnlyIfNoDeferred { template
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