1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Some missed places where cThread::Running() should be used

This commit is contained in:
Klaus Schmidinger 2005-08-15 12:30:21 +02:00
parent 69c17e7101
commit 01ea9d7b0d
2 changed files with 94 additions and 95 deletions

4
lirc.c
View File

@ -6,7 +6,7 @@
* *
* LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16. * LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
* *
* $Id: lirc.c 1.11 2005/07/31 10:18:09 kls Exp $ * $Id: lirc.c 1.12 2005/08/15 12:28:10 kls Exp $
*/ */
#include "lirc.h" #include "lirc.h"
@ -61,7 +61,7 @@ void cLircRemote::Action(void)
bool repeat = false; bool repeat = false;
int timeout = -1; int timeout = -1;
for (; f >= 0;) { while (Running() && f >= 0) {
bool ready = cFile::FileReady(f, timeout); bool ready = cFile::FileReady(f, timeout);
int ret = ready ? safe_read(f, buf, sizeof(buf)) : -1; int ret = ready ? safe_read(f, buf, sizeof(buf)) : -1;

5
rcu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: rcu.c 1.9 2005/07/31 10:17:45 kls Exp $ * $Id: rcu.c 1.10 2005/08/15 12:30:21 kls Exp $
*/ */
#include "rcu.h" #include "rcu.h"
@ -98,8 +98,7 @@ void cRcuRemote::Action(void)
uint64 LastCommand = 0; uint64 LastCommand = 0;
bool repeat = false; bool repeat = false;
//XXX while (Running() && f >= 0) {
for (; f >= 0;) {
LOCK_THREAD; LOCK_THREAD;