Boost.ASIO: upgrade io_service=>io_context, finally

This commit is contained in:
2026-05-30 11:59:42 -04:00
parent f100764bd8
commit 4266af545a
26 changed files with 91 additions and 90 deletions
+4 -4
View File
@@ -355,9 +355,9 @@ attachByCreatingProducer(
/* Delay here because getOrCreate just sent HandshakeReq, so device
* may not yet be ready for another command.
*/
// Initialize timer with LivoxGen1 metadata io_service
// Initialize timer with LivoxGen1 metadata io_context
const bool delayOk = co_await adapters::boostAsio::getDeadlineTimerAReqAwaiter(
componentThread->getIoService(),
componentThread->getIoContext(),
boost::posix_time::milliseconds(LIVOX_GEN1_DEVICE_COMMAND_DELAY_MS));
if (!delayOk)
@@ -538,9 +538,9 @@ livoxGen1_detachDeviceCReq(
// Add 5ms delay before destroying device
// Helper method to delay and then call destroyDeviceReq
// Initialize timer with LivoxGen1 metadata io_service
// Initialize timer with LivoxGen1 metadata io_context
co_await adapters::boostAsio::getDeadlineTimerAReqAwaiter(
requestComponentThread->getIoService(),
requestComponentThread->getIoContext(),
boost::posix_time::milliseconds(LIVOX_GEN1_DEVICE_COMMAND_DELAY_MS));
// No other buffers - stop and remove StimProducer