Menu

#279 confusing documentation of QF_newX_

QPC
closed
None
1
2024-08-01
2020-09-07
No

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.

Discussion

  • Quantum Leaps

    Quantum Leaps - 2020-09-07
    • status: open --> accepted
    • assigned_to: Quantum Leaps
     
  • Quantum Leaps

    Quantum Leaps - 2020-09-07

    How about the following documentation for the return from QF_newX_()?

    * @returns
    * pointer to the newly allocated event. This pointer can be NULL only if
    * margin != #QF_NO_MARGIN and the event cannot be allocated with the
    * specified margin still available in the given pool.
    

    --MMS

     
  • grzegorzkonopko

    grzegorzkonopko - 2020-09-08

    Looks good.

     
  • Quantum Leaps

    Quantum Leaps - 2020-10-07
    • status: accepted --> closed
     
  • Quantum Leaps

    Quantum Leaps - 2020-10-07

    Fixed in QP/C 6.9.1.
    --MMS

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB