replaced boost::asio::io_service by boost::asio:io_context

This commit is contained in:
orignal
2024-11-25 10:08:27 -05:00
parent 5f1b31213f
commit 3474538697
20 changed files with 39 additions and 39 deletions

View File

@@ -177,7 +177,7 @@ namespace util
RunnableService (const std::string& name): m_Name (name), m_IsRunning (false) {}
virtual ~RunnableService () {}
boost::asio::io_service& GetIOService () { return m_Service; }
auto& GetIOService () { return m_Service; }
bool IsRunning () const { return m_IsRunning; };
void StartIOService ();
@@ -194,7 +194,7 @@ namespace util
std::string m_Name;
volatile bool m_IsRunning;
std::unique_ptr<std::thread> m_Thread;
boost::asio::io_service m_Service;
boost::asio::io_context m_Service;
};
class RunnableServiceWithWork: public RunnableService
@@ -206,7 +206,7 @@ namespace util
private:
boost::asio::io_service::work m_Work;
boost::asio::io_context::work m_Work;
};
void SetThreadName (const char *name);