Boost.ASIO: upgrade io_service=>io_context, finally
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user