| 60 | } |
| 61 | |
| 62 | bool GpsService::onStart(ServiceContext& serviceContext) { |
| 63 | auto lock = mutex.asScopedLock(); |
| 64 | lock.lock(); |
| 65 | paths = serviceContext.getPaths(); |
| 66 | return true; |
| 67 | } |
| 68 | |
| 69 | void GpsService::onStop(ServiceContext& serviceContext) { |
| 70 | if (getState() == State::On) { |
no test coverage detected