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

Method getRadioState

Tactility/Source/app/btmanage/State.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23bluetooth::RadioState State::getRadioState() const {
24 auto lock = mutex.asScopedLock();
25 lock.lock();
26 return radioState;
27}
28
29void State::updateScanResults() {
30 // Fetch outside the lock to avoid holding it during a service call.

Callers 3

updateBtToggleMethod · 0.45
updateScanningMethod · 0.45
updatePeerListMethod · 0.45

Calls 2

asScopedLockMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected