void Slave::LoadRDBRoutine(void* cb) { Slave* slave = (Slave*) cb; if (NULL != slave->m_client) { slave->m_client->GetService().Continue(); } if (time(NULL) - slave->m_routine_ts > 10) { slave->Routine(); } }
void Run() { c->Routine(); }