From 8ad5179a614b10ab78a88cd4d18a565691b19134 Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Tue, 30 Sep 2025 19:47:23 -0400 Subject: [PATCH] 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. --- smocore/deviceManager/deviceManager.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/smocore/deviceManager/deviceManager.cpp b/smocore/deviceManager/deviceManager.cpp index 8806702..a55d19f 100644 --- a/smocore/deviceManager/deviceManager.cpp +++ b/smocore/deviceManager/deviceManager.cpp @@ -486,7 +486,6 @@ void DeviceManager::attachSenseDeviceReq( auto request = std::make_shared( spec, caller, cb, LockSet::Set{ - std::ref(DeviceManager::getInstance().qutex), std::ref(lib.qutex) }); @@ -521,7 +520,6 @@ void DeviceManager::detachSenseDeviceReq( auto request = std::make_shared( spec, caller, cb, LockSet::Set{ - std::ref(DeviceManager::getInstance().qutex), std::ref(lib.qutex) });