On Thu, 11 Jul 2002, Paul Davis wrote:

> the hard case is a common one: thread A ("audio thread";
> SCHED_FIFO/whatever) and thread B ("gui thread";
> SCHED_OTHER/whatever).

The easiest solution to this seems to be the one used in jackd: make
'A' use trylock() instead of lock(). This avoids the problem very 
elegantly. 

Hmm, come to think of it, this could be optimized for SMP systems by 
replacing trylock() with spin_trylock()... 

-- 
 http://www.eca.cx
 Audio software for Linux!

Reply via email to