Boost.ASIO: update io_service=>io_context

This commit is contained in:
2026-05-30 11:57:57 -04:00
parent 0afa3e16b8
commit 6df9407e65
16 changed files with 116 additions and 101 deletions
+4 -4
View File
@@ -14,7 +14,7 @@
#include <thread>
#endif
#include <boost/asio/io_service.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/post.hpp>
#include <spinscale/componentThread.h>
@@ -56,7 +56,7 @@ public:
{
WaitingCoroutine(
std::coroutine_handle<void> _callerSchedHandle,
boost::asio::io_service &_callerIoContext,
boost::asio::io_context &_callerIoContext,
PromiseChainLink &_waitingPromise) noexcept
: callerSchedHandle(_callerSchedHandle),
callerIoContext(_callerIoContext),
@@ -64,7 +64,7 @@ public:
{}
std::coroutine_handle<void> callerSchedHandle;
boost::asio::io_service &callerIoContext;
boost::asio::io_context &callerIoContext;
PromiseChainLink &waitingPromise;
};
@@ -104,7 +104,7 @@ public:
}
coQutex.waitingCoroutines.emplace_back(
std::coroutine_handle<void>::from_address(callerSchedHandle.address()),
sscl::ComponentThread::getSelf()->getIoService(),
sscl::ComponentThread::getSelf()->getIoContext(),
*acquirerChainLink);
return true;
}