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

Method updateScanResults

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

Source from the content-addressed store, hash-verified

27}
28
29void State::updateScanResults() {
30 // Fetch outside the lock to avoid holding it during a service call.
31 auto results = bluetooth::getScanResults();
32 auto lock = mutex.asScopedLock();
33 lock.lock();
34 scanResults = std::move(results);
35}
36
37void State::updatePairedPeers() {
38 auto peers = bluetooth::getPairedPeers();

Callers 2

onBtEventMethod · 0.80
onShowMethod · 0.80

Calls 3

asScopedLockMethod · 0.80
getScanResultsFunction · 0.50
lockMethod · 0.45

Tested by

no test coverage detected