DevMgr:at/detachSenseDevReq: only acquire API lib lock

We don't actually manipulate any of SenseApiMgr or DevMgr's state
so there's no need to acquire their locks.
This commit is contained in:
2025-09-30 19:47:23 -04:00
parent e600b0f96e
commit 8ad5179a61
-2
View File
@@ -486,7 +486,6 @@ void DeviceManager::attachSenseDeviceReq(
auto request = std::make_shared<AttachSenseDeviceReq>(
spec, caller, cb,
LockSet<attachSenseDeviceReqCbFn>::Set{
std::ref(DeviceManager::getInstance().qutex),
std::ref(lib.qutex)
});
@@ -521,7 +520,6 @@ void DeviceManager::detachSenseDeviceReq(
auto request = std::make_shared<DetachSenseDeviceReq>(
spec, caller, cb,
LockSet<detachSenseDeviceReqCbFn>::Set{
std::ref(DeviceManager::getInstance().qutex),
std::ref(lib.qutex)
});