DevMgr:at/detachSenseDevReq: release SenseApiMgr Qutex early
Release it early when we no longer need it.
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user