* Registers the timer and starts processing events for it. */
| 161 | * Registers the timer and starts processing events for it. |
| 162 | */ |
| 163 | void 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. |
no outgoing calls
no test coverage detected