Nursery: Initial integration
StimulusProducer: syncAwaitAllSettlements should pump caller io_context
This commit is contained in:
@@ -355,8 +355,11 @@ attachByCreatingProducer(
|
||||
* may not yet be ready for another command.
|
||||
*/
|
||||
// Initialize timer with LivoxGen1 metadata io_context
|
||||
boost::asio::deadline_timer commandDelayTimer(
|
||||
componentThread->getIoContext());
|
||||
const bool delayOk = co_await adapters::boostAsio::getDeadlineTimerAReqAwaiter(
|
||||
componentThread->getIoContext(),
|
||||
commandDelayTimer,
|
||||
boost::posix_time::milliseconds(LIVOX_GEN1_DEVICE_COMMAND_DELAY_MS));
|
||||
|
||||
if (!delayOk)
|
||||
@@ -540,10 +543,13 @@ livoxGen1_detachDeviceCReq(
|
||||
|
||||
// Add 5ms delay before destroying device
|
||||
|
||||
// Helper method to delay and then call destroyDeviceReq
|
||||
// Initialize timer with LivoxGen1 metadata io_context
|
||||
// Helper method to delay and then call destroyDeviceReq
|
||||
// Initialize timer with LivoxGen1 metadata io_context
|
||||
boost::asio::deadline_timer commandDelayTimer(
|
||||
requestComponentThread->getIoContext());
|
||||
co_await adapters::boostAsio::getDeadlineTimerAReqAwaiter(
|
||||
requestComponentThread->getIoContext(),
|
||||
commandDelayTimer,
|
||||
boost::posix_time::milliseconds(LIVOX_GEN1_DEVICE_COMMAND_DELAY_MS));
|
||||
|
||||
// No other buffers - stop and remove StimProducer
|
||||
|
||||
Reference in New Issue
Block a user