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

Method getState

Tactility/Source/app/AppInstance.cpp:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12State AppInstance::getState() const {
13 mutex.lock();
14 auto result = state;
15 mutex.unlock();
16 return result;
17}
18
19/** TODO: Make this thread-safe.
20 * In practice, the bundle is writeable, so someone could be writing to it

Callers 12

~UnPhoneFeaturesMethod · 0.45
ThreadTest.cppFile · 0.45
MutexTest.cppFile · 0.45
onConnectMethod · 0.45
onConnectFunction · 0.45
onConnectFunction · 0.45
onCreateMethod · 0.45
updateViewsMethod · 0.45
updateTimerStateMethod · 0.45
onGpsToggledMethod · 0.45
~ButtonControlMethod · 0.45

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected