MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / TimerDelEvents

Method TimerDelEvents

cpp/src/TimerThread.cpp:248–262  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Delete all TimerEvents associated with this instance -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

246// Delete all TimerEvents associated with this instance
247//-----------------------------------------------------------------------------
248void Timer::TimerDelEvents
249(
250)
251{
252 if (m_driver) {
253 list<TimerThread::TimerEventEntry *>::iterator it = m_timerEventList.begin();
254 while( it != m_timerEventList.end() ) {
255 m_driver->GetTimer()->TimerDelEvent((*it));
256 it = m_timerEventList.erase(it);
257 }
258 } else {
259 Log::Write(LogLevel_Warning, "Driver Not Set for Timer");
260 }
261
262}
263//-----------------------------------------------------------------------------
264// <Timer::SetDriver>
265// Associate this instance with a Driver

Callers

nothing calls this directly

Calls 4

WriteFunction · 0.85
TimerDelEventMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected