MythTV
master
|
#include <eitcache.h>
Public Member Functions | |
EITCache () | |
~EITCache () | |
bool | IsNewEIT (uint chanid, uint tableid, uint version, uint eventid, uint endtime) |
uint | PruneOldEntries (uint utc_timestamp) |
Prunes entries that describe events ending before timestamp time. More... | |
void | WriteToDB (void) |
void | ResetStatistics (void) |
QString | GetStatistics (void) const |
Static Public Member Functions | |
static MTV_PUBLIC void | ClearChannelLocks (void) |
Removes old channel locks, use it only at master backend start. More... | |
Private Member Functions | |
event_map_t * | LoadChannel (uint chanid) |
bool | WriteChannelToDB (QStringList &value_clauses, uint chanid) |
Private Attributes | |
key_map_t | m_channelMap |
QMutex | m_eventMapLock |
uint | m_lastPruneTime |
uint | m_accessCnt {0} |
uint | m_hitCnt {0} |
uint | m_tblChgCnt {0} |
uint | m_verChgCnt {0} |
uint | m_endChgCnt {0} |
uint | m_entryCnt {0} |
uint | m_pruneCnt {0} |
uint | m_prunedHitCnt {0} |
uint | m_futureHitCnt {0} |
uint | m_wrongChannelHitCnt {0} |
Static Private Attributes | |
static const uint | kVersionMax = 31 |
Definition at line 22 of file eitcache.h.
EITCache::EITCache | ( | ) |
Definition at line 22 of file eitcache.cpp.
EITCache::~EITCache | ( | ) |
Definition at line 28 of file eitcache.cpp.
Definition at line 336 of file eitcache.cpp.
Referenced by EITHelper::AddEIT().
Prunes entries that describe events ending before timestamp time.
Definition at line 413 of file eitcache.cpp.
Referenced by EITHelper::PruneEITCache().
void EITCache::WriteToDB | ( | void | ) |
Definition at line 307 of file eitcache.cpp.
Referenced by IsNewEIT(), PruneOldEntries(), EITHelper::WriteEITCache(), and ~EITCache().
void EITCache::ResetStatistics | ( | void | ) |
Definition at line 33 of file eitcache.cpp.
QString EITCache::GetStatistics | ( | void | ) | const |
Definition at line 47 of file eitcache.cpp.
Referenced by IsNewEIT().
|
private |
Definition at line 212 of file eitcache.cpp.
Referenced by IsNewEIT().
Definition at line 257 of file eitcache.cpp.
Referenced by WriteToDB().
|
static |
Removes old channel locks, use it only at master backend start.
Definition at line 438 of file eitcache.cpp.
Referenced by run_backend().
|
private |
Definition at line 42 of file eitcache.h.
Referenced by IsNewEIT(), WriteChannelToDB(), and WriteToDB().
|
mutableprivate |
Definition at line 44 of file eitcache.h.
Referenced by GetStatistics(), IsNewEIT(), and WriteToDB().
|
private |
Definition at line 45 of file eitcache.h.
Referenced by EITCache(), IsNewEIT(), LoadChannel(), PruneOldEntries(), and WriteChannelToDB().
|
private |
Definition at line 48 of file eitcache.h.
Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().
|
private |
Definition at line 49 of file eitcache.h.
Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().
|
private |
Definition at line 50 of file eitcache.h.
Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().
|
private |
Definition at line 51 of file eitcache.h.
Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().
|
private |
Definition at line 52 of file eitcache.h.
Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().
|
private |
Definition at line 53 of file eitcache.h.
Referenced by GetStatistics(), IsNewEIT(), LoadChannel(), and ResetStatistics().
|
private |
Definition at line 54 of file eitcache.h.
Referenced by GetStatistics(), ResetStatistics(), and WriteChannelToDB().
|
private |
Definition at line 55 of file eitcache.h.
Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().
|
private |
Definition at line 56 of file eitcache.h.
Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().
|
private |
Definition at line 57 of file eitcache.h.
Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().
|
staticprivate |
Definition at line 59 of file eitcache.h.