[mythtv] [patch] Fix for sluggish pause
David Engel
gigem at comcast.net
Wed Dec 1 03:04:44 UTC 2004
Take two, with patches attached!
David
On Tue, Nov 30, 2004 at 09:03:56PM -0600, David Engel wrote:
> 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
>
--
David Engel
gigem at comcast.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mutex.patch.gz
Type: application/octet-stream
Size: 1661 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041130/70a0def0/mutex.patch.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getframe1.patch.gz
Type: application/octet-stream
Size: 717 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041130/70a0def0/getframe1.patch.obj
More information about the mythtv-dev
mailing list