summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-10-13 09:34:47 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-10-13 09:34:47 +0200
commit44cb1a79a5ef620f317102cdae4c4c8780f250af (patch)
tree8c1edf229258faf1d47dd8a9ea59710ee00e47f9 /eit.c
parenta19ea98ccebd17231be9c480fd187bdee1bf9fd1 (diff)
downloadvdr-44cb1a79a5ef620f317102cdae4c4c8780f250af.tar.gz
vdr-44cb1a79a5ef620f317102cdae4c4c8780f250af.tar.bz2
The SVDRP command PUTE now triggers an immediate write of the 'epg.data' file
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/eit.c b/eit.c
index 17a4c984..40ae8741 100644
--- a/eit.c
+++ b/eit.c
@@ -16,7 +16,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: eit.c 1.56 2002/10/11 13:14:57 kls Exp $
+ * $Id: eit.c 1.57 2002/10/13 09:29:05 kls Exp $
***************************************************************************/
#include "eit.h"
@@ -983,6 +983,7 @@ int cSIProcessor::numSIProcessors = 0;
cSchedules *cSIProcessor::schedules = NULL;
cMutex cSIProcessor::schedulesMutex;
const char *cSIProcessor::epgDataFileName = EPGDATAFILENAME;
+time_t cSIProcessor::lastDump = time(NULL);
/** */
cSIProcessor::cSIProcessor(const char *FileName)
@@ -1083,7 +1084,6 @@ void cSIProcessor::Action()
dsyslog("EIT processing thread started (pid=%d)%s", getpid(), masterSIProcessor ? " - master" : "");
time_t lastCleanup = time(NULL);
- time_t lastDump = time(NULL);
active = true;
@@ -1267,3 +1267,9 @@ bool cSIProcessor::SetCurrentServiceID(unsigned short servid)
cMutexLock MutexLock(&schedulesMutex);
return schedules ? schedules->SetCurrentServiceID(servid) : false;
}
+
+void cSIProcessor::TriggerDump(void)
+{
+ cMutexLock MutexLock(&schedulesMutex);
+ lastDump = 0;
+}