[linux-audio-dev] malloc() in RT code considered not-so-harmful?

Tim Hockin thockin at hockin.org
Tue Jul 13 17:02:49 UTC 2004


On Tue, Jul 13, 2004 at 06:09:57PM +0200, Olivier Guilyardi wrote:
> >If you want to be careful, then yes.  You can ask msgrcv to not block, but
> >I'd personally double check the kernel code. :)
> 
> What do you usually use then to talk with a RT thread ? The JACK doc 
> talks about rwlocks, but message queues happen to elegantly suit my code...

You can do IPC without syscalls, if you have atomic ops on a platform.
See the various lock-free FIFO implementations floating around.



More information about the Linux-audio-dev mailing list