confusing documentation of QF_newX_
Real-Time Event Frameworks based on active objects & state machines
Brought to you by:
quantum-leaps
Dear
In documentaiton of QF_newX_:
Returns
pointer to the newly allocated event. This pointer can be NULL only if margin!=0 and the event cannot be allocated with the specified margin still available in the given pool.
https://www.state-machine.com/qpc/qf_8h.html#a1c49ff8c7895ca20958de54583a4e9cd
However if I pass margin == 0 I still get NULL pointer if pool is empty.
Anonymous
How about the following documentation for the return from QF_newX_()?
--MMS
Looks good.
Fixed in QP/C 6.9.1.
--MMS