Boost.ASIO: upgrade io_service=>io_context, finally
This commit is contained in:
@@ -103,7 +103,7 @@ void MarionetteComponent::exceptionInd()
|
||||
auto puppeteer = sscl::ComponentThread::getPptr();
|
||||
|
||||
boost::asio::post(
|
||||
puppeteer->getIoService(),
|
||||
puppeteer->getIoContext(),
|
||||
[]
|
||||
{
|
||||
mrntt.holdFinalizeCReq(
|
||||
|
||||
@@ -63,7 +63,7 @@ void MarionetteComponent::postJoltHook()
|
||||
|
||||
// Register SIGINT (Ctrl+C) and SIGSEGV handlers
|
||||
signals = std::make_unique<boost::asio::signal_set>(
|
||||
th->getIoService(), SIGINT);
|
||||
th->getIoContext(), SIGINT);
|
||||
|
||||
signals->async_wait(
|
||||
[](const boost::system::error_code& ec, int signal)
|
||||
|
||||
Reference in New Issue
Block a user