[LAD] a *simple* ring buffer, comments pls?

Olivier Guilyardi list at samalyse.com
Mon Jul 11 23:06:34 UTC 2011


On 07/12/2011 12:06 AM, Fons Adriaensen wrote:

> OTOH, if you have a number of threads at the same priority
> as Jack's and doing audio work (e.g. to use all the CPUs of
> an SMP machine) then using locks between them (but no other
> threads) should be OK - depending a bit on how they are used.

So, you can use locks as long as that's only meant to synchronize realtime
threads with each other? Should some master thread (could be the JACK process
thread) have a realtime priority slightly higher than the other (worker)
realtime threads? What are the caveats in general?

--
  Olivier




More information about the Linux-audio-dev mailing list