On Wed, Dec 14, 2011 at 4:54 PM, Paul Davis <paul(a)linuxaudiosystems.com> wrote:
On Wed, Dec 14, 2011 at 4:52 PM, Paul Coccoli
<pcoccoli(a)gmail.com> wrote:
Can you send a pointer to your struct over the
ringbuffer instead?
only if you establish very clear rules about buffer ownership. that
can be tricky to do.
Agreed about the ownership rules, but I don't think it's that tricky.
Use one ringbuffer to pass pointer into the RT thread and another to
pass them back to the "main" (non-RT) thread. The non-RT thread is
then responsible for all memory management. You wouldn't call
free/delete in an RT thread anyway, would you?