[LAD] opinions wanted on a couple of architecture questions

Iain Duncan iainduncanlists at gmail.com
Fri Dec 9 20:07:35 UTC 2011


> - how should one handle memory management of the messages? Is it ok for
> Engine to allocate memory for new
> messages and have them destroyed on receipt,
> - or should I have queue delete the memory and return by value when
> messages are fetched?
> - what is the crustimony proceedcake for allocated memory from an engine?
>

Oops, perhaps I missed the boat on the ringbuffer, is the whole point that
with a ring buffer the memory for the max number of messages is
pre-allocated and we can just call by value in and out of the ringbuffer
without any memory management?

thanks
Iain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20111209/ee46cd6f/attachment.html>


More information about the Linux-audio-dev mailing list