livoxGen1: Execute delays on lib's assigned CompThread
This commit is contained in:
@@ -213,9 +213,9 @@ public:
|
|||||||
void delayedGetReturnMode(
|
void delayedGetReturnMode(
|
||||||
std::shared_ptr<AttachDeviceReq> context)
|
std::shared_ptr<AttachDeviceReq> context)
|
||||||
{
|
{
|
||||||
// Initialize timer with device's component thread
|
// Initialize timer with LivoxGen1 metadata io_service
|
||||||
delayTimer = std::make_unique<boost::asio::deadline_timer>(
|
delayTimer = std::make_unique<boost::asio::deadline_timer>(
|
||||||
context->deviceTmp->componentThread->getIoService());
|
smoThreadingModelDesc.componentThread->getIoService());
|
||||||
|
|
||||||
delayTimer->expires_from_now(boost::posix_time::milliseconds(5));
|
delayTimer->expires_from_now(boost::posix_time::milliseconds(5));
|
||||||
delayTimer->async_wait(
|
delayTimer->async_wait(
|
||||||
|
|||||||
Reference in New Issue
Block a user