El S?bado, 7 de Mayo de 2005 16:11, Klaus Schmidinger escribi?: > Darren Salt wrote: > > The attached patch should fix a hang (livelock) which can occur when > > moving between editing marks. Blame Timothy Baldwin if it doesn't work - > > he suggested it ;-) > > > > > > > > ------------------------------------------------------------------------ > > > > #! /bin/sh /usr/share/dpatch/dpatch-run > > ## 10_livelock.dpatch by Timothy Baldwin > > <T.E.Baldwin99@xxxxxxxxxxxxxxxxxxx> ## > > ## All lines beginning with `## DP:' are a description of the patch. > > ## DP: Fix a livelock problem when jumping between editing marks. > > > > @DPATCH@ > > diff -urNad vdr-1.3.23/dvbplayer.c > > /tmp/dpep.odvcge/vdr-1.3.23/dvbplayer.c --- > > vdr-1.3.23/dvbplayer.c 2005-03-25 23:45:25.789555968 +0000 > > +++ /tmp/dpep.odvcge/vdr-1.3.23/dvbplayer.c 2005-03-25 23:53:11.273645683 > > +0000 @@ -376,6 +376,7 @@ > > cPoller Poller; > > if (DevicePoll(Poller, 100)) { > > > > + sched_yield(); > > LOCK_THREAD; > > > > // Read the next frame from the file: > > Under which conditions do these lockups happen? > > Which output device is in use (FF DVB card or some software player)? > > I don't really see what difference this sched_yield() would make, > so I'd like to understand this before simply throwing it in... > > Klaus > This patch resolve also my problems with cpu load with recents kernels (2.6.11....). Jose Alberto