mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
eitd/sectionsd.cpp: includes cleanup; fix compile without dvbsi++ event parse - to test memory fragmentation
This commit is contained in:
@@ -36,23 +36,11 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include <set>
|
|
||||||
#include <map>
|
|
||||||
#include <algorithm>
|
|
||||||
#include <string>
|
|
||||||
#include <limits>
|
|
||||||
|
|
||||||
#include <sys/wait.h>
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include <connection/basicsocket.h>
|
#include <connection/basicsocket.h>
|
||||||
#include <connection/basicserver.h>
|
#include <connection/basicserver.h>
|
||||||
|
|
||||||
#include <xmltree/xmlinterface.h>
|
|
||||||
#include <configfile.h>
|
|
||||||
#include <zapit/client/zapittools.h>
|
|
||||||
|
|
||||||
#include <sectionsdclient/sectionsdMsg.h>
|
#include <sectionsdclient/sectionsdMsg.h>
|
||||||
#include <sectionsdclient/sectionsdclient.h>
|
#include <sectionsdclient/sectionsdclient.h>
|
||||||
#include <eventserver.h>
|
#include <eventserver.h>
|
||||||
@@ -75,6 +63,7 @@
|
|||||||
static bool sectionsd_ready = false;
|
static bool sectionsd_ready = false;
|
||||||
/*static*/ bool reader_ready = true;
|
/*static*/ bool reader_ready = true;
|
||||||
static unsigned int max_events;
|
static unsigned int max_events;
|
||||||
|
static bool notify_complete = true;
|
||||||
|
|
||||||
/* period to remove old events */
|
/* period to remove old events */
|
||||||
#define HOUSEKEEPING_SLEEP (5 * 60) // sleep 5 minutes
|
#define HOUSEKEEPING_SLEEP (5 * 60) // sleep 5 minutes
|
||||||
@@ -1516,10 +1505,6 @@ void CSectionThread::run()
|
|||||||
sendToSleepNow = false;
|
sendToSleepNow = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
int rc = getSection(static_buf, timeoutInMSeconds, timeoutsDMX);
|
|
||||||
processSection(rc);
|
|
||||||
#endif
|
|
||||||
processSection();
|
processSection();
|
||||||
|
|
||||||
time_t zeit = time_monotonic();
|
time_t zeit = time_monotonic();
|
||||||
@@ -1562,7 +1547,7 @@ bool CEventsThread::addEvents()
|
|||||||
if (!eit.is_parsed())
|
if (!eit.is_parsed())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
dprintf("[eitThread] adding %d events [table 0x%x] (begin)\n", eit.events().size(), eit.getTableId());
|
dprintf("[%s] adding %d events (begin)\n", name.c_str(), eit.events().size());
|
||||||
time_t zeit = time(NULL);
|
time_t zeit = time(NULL);
|
||||||
|
|
||||||
for (SIevents::iterator e = eit.events().begin(); e != eit.events().end(); ++e) {
|
for (SIevents::iterator e = eit.events().begin(); e != eit.events().end(); ++e) {
|
||||||
@@ -1650,6 +1635,8 @@ void CEitThread::beforeSleep()
|
|||||||
writeLockMessaging();
|
writeLockMessaging();
|
||||||
messaging_zap_detected = false;
|
messaging_zap_detected = false;
|
||||||
unlockMessaging();
|
unlockMessaging();
|
||||||
|
if(notify_complete)
|
||||||
|
system("/var/tuxbox/config/epgdone.sh");
|
||||||
}
|
}
|
||||||
|
|
||||||
/********************************************************************************/
|
/********************************************************************************/
|
||||||
|
Reference in New Issue
Block a user