| 148 | } |
| 149 | |
| 150 | void Downtime::Stop(bool runtimeRemoved) |
| 151 | { |
| 152 | { |
| 153 | std::unique_lock<std::mutex> lock (l_DowntimeMutex); |
| 154 | |
| 155 | l_LegacyDowntimesCache.erase(GetLegacyId()); |
| 156 | } |
| 157 | |
| 158 | GetCheckable()->UnregisterDowntime(this); |
| 159 | |
| 160 | Downtime::Ptr parent = GetByName(GetParent()); |
| 161 | |
| 162 | if (parent) |
| 163 | parent->UnregisterChild(this); |
| 164 | |
| 165 | if (runtimeRemoved) |
| 166 | OnDowntimeRemoved(this); |
| 167 | |
| 168 | ObjectImpl<Downtime>::Stop(runtimeRemoved); |
| 169 | } |
| 170 | |
| 171 | void Downtime::Pause() |
| 172 | { |
no test coverage detected