DevMgr: Use releaseQutexEarly

This commit is contained in:
2025-09-30 22:53:17 -04:00
parent af19125ac2
commit 55fe2675df
+3 -3
View File
@@ -373,7 +373,7 @@ public:
return; return;
} }
sense_api::SenseApiManager::getInstance().qutex.release(); releaseQutexEarly(sense_api::SenseApiManager::getInstance().qutex);
/** EXPLANATION: /** EXPLANATION:
* We pass in either the body or world thread here, depending on whether * We pass in either the body or world thread here, depending on whether
@@ -442,7 +442,7 @@ public:
return; return;
} }
sense_api::SenseApiManager::getInstance().qutex.release(); releaseQutexEarly(sense_api::SenseApiManager::getInstance().qutex);
senseApiLib->senseApiDesc.sal_mgmt_libOps.detachDeviceReq( senseApiLib->senseApiDesc.sal_mgmt_libOps.detachDeviceReq(
spec, spec,
@@ -682,7 +682,7 @@ public:
} }
// Release the DeviceManager qutex early before calling the inner method // Release the DeviceManager qutex early before calling the inner method
DeviceManager::getInstance().qutex.release(); releaseQutexEarly(DeviceManager::getInstance().qutex);
// Pass the vector to the existing function // Pass the vector to the existing function
DeviceManager::getInstance().attachAllUnattachedDevicesFromReq( DeviceManager::getInstance().attachAllUnattachedDevicesFromReq(