Menu

#126 Allow non-asserting event allocation for zero-margin allocations

QP-C-C++
closed
None
1
2017-09-24
2017-06-17
No

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

Discussion

  • Quantum Leaps

    Quantum Leaps - 2017-08-21
    • status: open --> closed
     
  • Quantum Leaps

    Quantum Leaps - 2017-08-21

    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

     
  • Quantum Leaps

    Quantum Leaps - 2017-09-24
    • Group: QP-C --> QP-C-C++
     
  • Quantum Leaps

    Quantum Leaps - 2017-09-24
     
  • Quantum Leaps

    Quantum Leaps - 2017-09-24

    This bug has been fixed in QP/C/C++/nano 5.9.8. The zero value of margin no loner asserts. Instead, the "asserting" versions of event allocation and posting use the special value of QF_NO_MARGIN.

    --MMS

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB