livoxGen1: Execute delays on lib's assigned CompThread
This commit is contained in:
@@ -213,9 +213,9 @@ public:
|
||||
void delayedGetReturnMode(
|
||||
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>(
|
||||
context->deviceTmp->componentThread->getIoService());
|
||||
smoThreadingModelDesc.componentThread->getIoService());
|
||||
|
||||
delayTimer->expires_from_now(boost::posix_time::milliseconds(5));
|
||||
delayTimer->async_wait(
|
||||
|
||||
Reference in New Issue
Block a user