| 147 | } |
| 148 | |
| 149 | void TimerService::stop() |
| 150 | { |
| 151 | TopicHandlerService& topicHandlerService = TopicHandlerService::getInstance(); |
| 152 | |
| 153 | topicHandlerService.unregisterTopic(m_deviceId, ENTITY_ID, TOPIC); |
| 154 | m_processTimer.stop(); |
| 155 | |
| 156 | m_mutex.destroy(); |
| 157 | |
| 158 | if (true == m_isRunning) |
| 159 | { |
| 160 | m_isRunning = false; |
| 161 | LOG_INFO("Timer service stopped."); |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | void TimerService::process() |
| 166 | { |
nothing calls this directly
no test coverage detected