MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onStart

Method onStart

Tactility/Source/service/gps/GpsService.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

startServiceFunction · 0.45

Calls 3

asScopedLockMethod · 0.80
lockMethod · 0.45
getPathsMethod · 0.45

Tested by

no test coverage detected