| 830 | |
| 831 | struct NotificationLog { |
| 832 | std::vector<std::pair<NotificationType, ServiceState>> GetAndClear() { |
| 833 | std::lock_guard<std::mutex> lock (mutex); |
| 834 | |
| 835 | std::vector<std::pair<NotificationType, ServiceState>> ret; |
| 836 | std::swap(ret, log); |
| 837 | return ret; |
| 838 | } |
| 839 | |
| 840 | void Add(std::pair<NotificationType, ServiceState> notification) { |
| 841 | std::lock_guard<std::mutex> lock (mutex); |
no test coverage detected