|
SASC-NG
DVBSoftCAM
|
Inheritance diagram for cScHousekeeper:Public Member Functions | |
| cScHousekeeper (void) | |
| ~cScHousekeeper () | |
Protected Member Functions | |
| virtual void | Action (void) |
| cScHousekeeper::cScHousekeeper | ( | void | ) |
Definition at line 1031 of file sc.c.
References cThread::Start().
| cScHousekeeper::~cScHousekeeper | ( | ) |
| void cScHousekeeper::Action | ( | void | ) | [protected, virtual] |
A derived cThread class must implement the code it wants to execute as a separate thread in this function. If this is a loop, it must check Running() repeatedly to see whether it's time to stop.
Implements cThread.
Definition at line 1042 of file sc.c.
References cGlobal::Active(), Feature, cPlainKeys::HouseKeeping(), cGlobal::HouseKeeping(), cFeature::KeyFile(), keys, cStructLoaders::Load(), cStructLoaders::Purge(), cThread::Running(), cStructLoaders::Save(), and cCondWait::SleepMs().
{
int c=0;
while(Running()) {
if(++c==20) {
c=0;
cGlobal::HouseKeeping();
}
if(Feature.KeyFile()) keys.HouseKeeping();
if(!cGlobal::Active(false)) cStructLoaders::Purge();
cStructLoaders::Load(true);
cStructLoaders::Save();
cCondWait::SleepMs(987);
}
}