MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Start

Method Start

lib/base/timer.cpp:163–174  ·  view source on GitHub ↗

* Registers the timer and starts processing events for it. */

Source from the content-addressed store, hash-verified

161 * Registers the timer and starts processing events for it.
162 */
163void Timer::Start()
164{
165 std::unique_lock<std::mutex> lock(l_TimerMutex);
166
167 if (!m_Started && ++l_AliveTimers == 1) {
168 InitializeThread();
169 }
170
171 m_Started = true;
172
173 InternalRescheduleUnlocked(false, m_Interval > 0 ? -1 : m_Next);
174}
175
176/**
177 * Unregisters the timer and stops processing events for it.

Callers 4

object.cppFile · 0.45
BindStreamMethod · 0.45
InitializeBaseMethod · 0.45
WorkQueueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected