Allow non-asserting event allocation for zero-margin allocations
Real-Time Event Frameworks based on active objects & state machines
Brought to you by:
quantum-leaps
It would be preferrable to have a way to ask for an event with a margin of 0 and not have it assert. I too have some large events and having an extra event just sitting around not being used is not ideal.
I will likely just come up with another solution, possibly one that doesn't use QF memory pools, which I would rather not do.
So I would request that in a future version of the framework, we have a way to request a new object which will allow us to use all the objects in the pool without asserting.
Thanks,
Craig
Anonymous
This feature has been implemented in QP/C/C++ 5.9.3. The allocation with margin==0 no longer asserts if an event pool runs out of events. Similarly, posting to a queue with margin==0 no longer asserts when the queue cannot accept any more events. To assert on these conditions, the special value margin==QF_NO_MARGIN needs to be used.
--MMS
This bug has been fixed in QP/C/C++/nano 5.9.8. The zero value of
marginno loner asserts. Instead, the "asserting" versions of event allocation and posting use the special value of QF_NO_MARGIN.--MMS