Mixe for Privacy and Anonymity in the Internet
Functions
CADatabase.cpp File Reference
#include "StdAfx.h"
#include "CADatabase.hpp"
#include "CAUtil.hpp"
#include "CAMsg.hpp"
Include dependency graph for CADatabase.cpp:

Go to the source code of this file.

Functions

THREAD_RETURN db_loopMaintenance (void *param)

Function Documentation

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;
  }

Here is the call graph for this function: