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

Method setState

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

Source from the content-addressed store, hash-verified

212}
213
214void GpsService::setState(State newState) {
215 auto lock = stateMutex.asScopedLock();
216 lock.lock();
217 state = newState;
218 lock.unlock();
219 statePubSub->publish(state);
220}
221
222bool GpsService::hasCoordinates() const {
223 auto lock = mutex.asScopedLock();

Callers 3

startServiceFunction · 0.45
stopServiceFunction · 0.45
transitionAppToStateMethod · 0.45

Calls 4

asScopedLockMethod · 0.80
publishMethod · 0.80
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected