bool TizenTimerManager::installTimerProc(TimerProc proc, int32 interval, void *refCon, const Common::String &id) { TimerSlot *slot = new TimerSlot(proc, interval / 1000, refCon); if (IsFailed(slot->Construct())) { AppLog("Failed to create timer thread"); delete slot; return false; } if (IsFailed(slot->Start())) { delete slot; AppLog("Failed to start timer thread"); return false; } _timers.push_back(slot); return true; }
bool BadaTimerManager::installTimerProc(TimerProc proc, int32 interval, void *refCon) { logEntered(); TimerSlot* slot = new TimerSlot(proc, interval / 1000, refCon); if (IsFailed(slot->Construct(THREAD_TYPE_EVENT_DRIVEN))) { AppLog("Failed to create timer thread"); delete slot; return false; } if (IsFailed(slot->Start())) { delete slot; AppLog("Failed to start timer thread"); return false; } _timers.push_back(*slot); return true; }