DevMgr:at/detachSenseDevReq: release SenseApiMgr Qutex early

Release it early when we no longer need it.
This commit is contained in:
2025-09-30 20:29:39 -04:00
parent 77e123ff4a
commit 1bad358921
+5
View File
@@ -368,6 +368,8 @@ public:
return; return;
} }
sense_api::SenseApiManager::getInstance().qutex.release();
/** 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
* the device is an introspector (idev) or extrospector (edev). * the device is an introspector (idev) or extrospector (edev).
@@ -441,6 +443,9 @@ public:
callOriginalCb(false, spec); callOriginalCb(false, spec);
return; return;
} }
sense_api::SenseApiManager::getInstance().qutex.release();
lib.senseApiDesc.sal_mgmt_libOps.detachDeviceReq( lib.senseApiDesc.sal_mgmt_libOps.detachDeviceReq(
spec, spec,
{context, std::bind( {context, std::bind(