void ConfigStorage::TouchFile::start(const char* fName) { fileName = fName; LocalStatus s; TimerInterfacePtr()->start(&s, this, TOUCH_INTERVAL * 1000 * 1000); check(&s); }
void ConfigStorage::TouchFile::handler() { os_utils::touchFile(fileName); LocalStatus s; TimerInterfacePtr()->start(&s, this, TOUCH_INTERVAL * 1000 * 1000); // ignore error in handler }
void Database::Linger::set(unsigned seconds) { if (dbb && !active) { FbLocalStatus s; TimerInterfacePtr()->start(&s, this, seconds * 1000 * 1000); check(&s); active = true; } }
void Database::Linger::reset() { if (active) { FbLocalStatus s; TimerInterfacePtr()->stop(&s, this); if (!(s->getState() & IStatus::STATE_ERRORS)) active = false; } }
void ConfigStorage::TouchFile::stop() { LocalStatus s; TimerInterfacePtr()->stop(&s, this); // ignore error in stop timer }
void ConfigStorage::TouchFile::stop() { TimerInterfacePtr()->stop(this); }
void ConfigStorage::TouchFile::start(const char* fName) { fileName = fName; TimerInterfacePtr()->start(this, TOUCH_INTERVAL * 1000 * 1000); }
void FB_CARG ConfigStorage::TouchFile::handler() { os_utils::touchFile(fileName); TimerInterfacePtr()->start(this, TOUCH_INTERVAL * 1000 * 1000); }