[LAD] Writing to an eventfd from a realtime thread

From: William Light <wrl@email-addr-hidden>
Date: Wed Sep 24 2014 - 14:21:40 EEST

Hey everybody,

I've got this audio app I'm writing which uses message passing to
communicate between threads (similar to the actor model). A message
channel consists of a ring-buffer for the actual message storage, and
then an eventfd so that a thread can block on its channel (or,
importantly, several).

At the moment, when the audio thread (the JACK callback) needs to send a
message over a channel to another thread, it follows the common codepath
of appending the message to the channel's ring-buffer and then
write()ing to the eventfd. I suspect this is not real-time safe, but is
it something I should lose sleep over?

-w
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Wed Sep 24 16:15:02 2014

This archive was generated by hypermail 2.1.8 : Wed Sep 24 2014 - 16:15:02 EEST