[mythtv] [patch] Fix for sluggish pause
David Engel
gigem at comcast.net
Wed Dec 1 03:03:56 UTC 2004
On Tue, Nov 30, 2004 at 10:55:07AM -0500, Doug Larrick wrote:
> David Engel wrote:
> >That's the problem! Try changing the decoder_lock from a QMutext to a
> >pthread_mutex_t and see if that helps. I suspect it will, and will
> >also get rid of the sched_yield which I didn't like anyway. If you
> >can't make the change, I will do it tonight.
>
> I'll give it a try. I might be able to get to this tonight.
Well, pthread_mutex_t seems to have the same problem as QMutex in that
a precess already waiting doesn't get priority over a process that
releases, yields and reacquires. :( IOW, the sched_yield is stil needed
on UP and probably won't help much on SMP. You can try mutex.patch for
yourself if you like.
getframe.patch partially implements my return early from NVP::GetFrame
suggestion. It's for testing only, but please give it a try. If it
works OK, I'll flesh it out.
David
--
David Engel
gigem at comcast.net
More information about the mythtv-dev
mailing list