livoxGen1: Execute delays on lib's assigned CompThread

This commit is contained in:
2025-11-15 15:59:34 -04:00
parent 7a51f02d97
commit 2632917c63
+2 -2
View File
@@ -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(