On 05/20/2010 08:39 PM, Nathanael Anderson wrote:
Well, this is a bit different, but I made an osc server with liblo in Jackbeat,
and got no obscure issue IIRC.
But I sense that you are a bit afraid about dealing with multiple threads.
And in what you explain you'll still need an OSC thread in your daemon, which is
waiting for OSC messages and dispatches them when they arrive. So you'll have to
implement some kind of (IPC) communication channel between this thread and your
RT thread. GUI or not, you have to deal with this ;-)
Now, because you have an RT thread, there are some traditional IPC approaches
that you can't use here. You can't do any blocking calls in the RT thread, so
the usual mutex/lock-based IPC is not ok.
What I do in this situation is sending messages from one thread to the other
through a jack ringbuffer. This is 100% realtime-safe.
--
Olivier
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.