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

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] malloc() in RT code considered not-so-harmful?
From: Tim Hockin (thockin_AT_hockin.org)
Date: Tue Jul 13 2004 - 20:02:49 EEST


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.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Tue Jul 13 2004 - 20:33:30 EEST