|
Mixe for Privacy and Anonymity in the Internet
|
Go to the source code of this file.
Functions | |
| THREAD_RETURN | db_loopMaintenance (void *param) |
| THREAD_RETURN db_loopMaintenance | ( | void * | param | ) |
Definition at line 223 of file CADatabase.cpp.
References BEGIN_STACK, FINISH_STACK, INIT_STACK, CADatabase::m_bRun, CADatabase::m_lastSwitch, CADatabase::nextClock(), SECONDS_PER_INTERVALL, sSleep(), and THREAD_RETURN_SUCCESS.
{
INIT_STACK;
BEGIN_STACK("CADatabase::db_loopMaintenance");
CADatabase* pDatabase=(CADatabase*)param;
while(pDatabase->m_bRun)
{
sSleep(10);
if (pDatabase->m_lastSwitch+SECONDS_PER_INTERVALL<=time(NULL)) {
pDatabase->nextClock();
}
}
FINISH_STACK("CADatabase::db_loopMaintenance");
THREAD_RETURN_SUCCESS;
}
1.7.6.1