[mythtv] [patch] Fix for sluggish pause

Daniel Manjarres danmanj at gmail.com
Tue Dec 7 04:46:30 UTC 2004


On Tue, 30 Nov 2004 21:03:56 -0600, David Engel <gigem at comcast.net> wrote:
> On Tue, Nov 30, 2004 at 10:55:07AM -0500, Doug Larrick wrote:

> 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.

Umm I'm sorry I didn't read this until now, but I seem to recall this
very thing driving me up the wall for 2 days until I figured a way
around it in 2003:

release_mutex();
poll(NULL, 0, 0);
acquire_mutex();
Is what I recall worked on Linux kernel years ago.


More information about the mythtv-dev mailing list