[LAD] Writing to an eventfd from a realtime thread

karthik poduval karthik.poduval at gmail.com
Wed Sep 24 22:15:21 UTC 2014


You could also use a jack_rigbuffer_t, its lock free and hence should be RT
thread safe.
You could write a known msg into the ring buffer from the RT thread,
receive the msg from non real-time thread and do event passing from there.

-- 
Regards,
Karthik Poduval

On Wed, Sep 24, 2014 at 5:39 AM, Tim Goetze <tim at quitte.de> wrote:

> [William Light]
> >I'm avoiding blocking, of course, but I'm also worried about the
> >potential scheduling implications of jumping into kernel-mode and back,
> >and also the potential non-determinism of system call execution time.
> >Are these things I should actually worry about?
>
> I've been using pipes for message-passing the way Clemens mentioned in
> realtime MIDI and audio threads for years without ever experiencing any
> scheduling or blocking problems.
>
> Cheers, Tim
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20140924/f3ff577a/attachment.html>


More information about the Linux-audio-dev mailing list