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

Removed the LOCK_THREAD from the LIRC thread

This commit is contained in:
Klaus Schmidinger 2004-12-18 13:26:07 +01:00
parent c1b39c523d
commit 9bbcf23a86
3 changed files with 5 additions and 3 deletions

View File

@ -760,6 +760,7 @@ Ludwig Nussel <ludwig.nussel@web.de>
for reporting a bug in cRingBufferLinear::Get() in case the buffer wraps around for reporting a bug in cRingBufferLinear::Get() in case the buffer wraps around
for adding some checks when canceling a thread and removing the usleep() in for adding some checks when canceling a thread and removing the usleep() in
cThread::Start() cThread::Start()
for removing the LOCK_THREAD from the LIRC thread
Thomas Koch <tom@harhar.net> Thomas Koch <tom@harhar.net>
for his support in keeping the Premiere World channels up to date in 'channels.conf' for his support in keeping the Premiere World channels up to date in 'channels.conf'

View File

@ -3198,3 +3198,4 @@ Video Disk Recorder Revision History
- Completed the Italian OSD texts (thanks to Sean Carlos). - Completed the Italian OSD texts (thanks to Sean Carlos).
- Fixed setting 'synced' in cRemux when recording radio channels (thanks to - Fixed setting 'synced' in cRemux when recording radio channels (thanks to
Laurence Abbott). Laurence Abbott).
- Removed the LOCK_THREAD from the LIRC thread (thanks to Ludwig Nussel).

6
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.7 2003/10/18 11:34:02 kls Exp $ * $Id: lirc.c 1.8 2004/12/18 13:25:11 kls Exp $
*/ */
#include "lirc.h" #include "lirc.h"
@ -41,6 +41,8 @@ cLircRemote::cLircRemote(char *DeviceName)
cLircRemote::~cLircRemote() cLircRemote::~cLircRemote()
{ {
Cancel(); Cancel();
if (f >= 0)
close(f);
} }
bool cLircRemote::Ready(void) bool cLircRemote::Ready(void)
@ -59,8 +61,6 @@ void cLircRemote::Action(void)
for (; f >= 0;) { for (; f >= 0;) {
LOCK_THREAD;
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;