Boost.ASIO: upgrade io_service=>io_context, finally
This commit is contained in:
@@ -114,7 +114,7 @@ PcloudStimulusProducer::PcloudStimulusProducer(
|
||||
size_t nDgramsPerStagingBufferFrame)
|
||||
: StimulusProducer(
|
||||
deviceAttachmentSpec,
|
||||
device->componentThread->getIoService()),
|
||||
device->componentThread->getIoContext()),
|
||||
nDgramsPerStagingBufferFrame(nDgramsPerStagingBufferFrame),
|
||||
device(device),
|
||||
formatDesc(formatDesc),
|
||||
@@ -764,7 +764,7 @@ void PcloudStimulusProducer::produceFrameReq(
|
||||
*this, caller, std::move(callback));
|
||||
|
||||
// Post the doAssemble method to the component thread
|
||||
device->componentThread->getIoService().post(
|
||||
boost::asio::post(device->componentThread->getIoContext(),
|
||||
STC(std::bind(
|
||||
&ProduceFrameReq::produceFrameReq1_doAssemble_posted,
|
||||
request.get(), request)));
|
||||
|
||||
Reference in New Issue
Block a user