[mythtv] PATCH mythmusic for NPTL kernels (Fedora/Redhat9)

Isaac Richards ijr at po.cwru.edu
Sat Feb 7 13:04:21 EST 2004


On Friday 06 February 2004 06:02 pm, Brent Hills wrote:
> This patch enables mythmusic to function without the LD_ASSUME_KERNEL
> work arounds on NPTL kernels (Fedora/Later Redhat).
>
> The output mutex was being held for long periods but wasn't really
> needed.  There is very little thread interaction that required the
> output mutex.  The critical mutex for the output buffer is maintained by
> the "recycler".
>
> The small sections which made use of the output mutex I reworked without
> using a mutex.
>
> This was enough of a change to allow mythmusic to work on Fedora for me
> at least and it still seems ok on Linuxthread kernels.

This looks like it creates one big race condition to me.  How about just 
removing the mutex lock from the large select() block in the run() function 
instead?

Isaac


More information about the mythtv-dev mailing list