Made cCondWait::SleepMs() sleep at least 3ms to avoid a possible busy wait

This commit is contained in:
Klaus Schmidinger
2005-01-14 14:08:47 +01:00
parent 0d596d0478
commit 0ad4b2a713
5 changed files with 10 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: dvbplayer.c 1.29 2004/12/26 11:45:34 kls Exp $
* $Id: dvbplayer.c 1.30 2005/01/14 14:00:56 kls Exp $
*/
#include "dvbplayer.h"
@@ -439,7 +439,7 @@ void cDvbPlayer::Action(void)
}
}
else
cCondWait::SleepMs(1); // this keeps the CPU load low
cCondWait::SleepMs(3); // this keeps the CPU load low
}
// Store the frame in the buffer: