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

Stopping remote control thread at end

This commit is contained in:
Klaus Schmidinger 2000-10-08 16:49:41 +02:00
parent a36ff983f5
commit ff109a90a6
2 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@
* *
* Ported to LIRC by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16. * Ported to LIRC by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
* *
* $Id: remote.c 1.17 2000/10/08 11:39:11 kls Exp $ * $Id: remote.c 1.18 2000/10/08 16:49:41 kls Exp $
*/ */
#include "remote.h" #include "remote.h"
@ -115,6 +115,7 @@ cRcIoRCU::cRcIoRCU(char *DeviceName)
cRcIoRCU::~cRcIoRCU() cRcIoRCU::~cRcIoRCU()
{ {
Stop();
} }
void cRcIoRCU::Action(void) void cRcIoRCU::Action(void)
@ -419,6 +420,7 @@ cRcIoLIRC::cRcIoLIRC(char *DeviceName)
cRcIoLIRC::~cRcIoLIRC() cRcIoLIRC::~cRcIoLIRC()
{ {
Stop();
} }
void cRcIoLIRC::Action(void) void cRcIoLIRC::Action(void)

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: thread.c 1.1 2000/10/07 17:31:39 kls Exp $ * $Id: thread.c 1.2 2000/10/08 16:45:50 kls Exp $
*/ */
#include "thread.h" #include "thread.h"
@ -58,7 +58,7 @@ bool cThread::Start(void)
void cThread::Stop(void) void cThread::Stop(void)
{ {
pthread_exit(NULL); pthread_cancel(thread);
} }
bool cThread::Lock(void) bool cThread::Lock(void)