From 9dd72fc481349f0b5ce985164441eecfa6485c19 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 17 Mar 2025 01:25:02 +0100 Subject: Add abstraction of io_{context,service} and use it as appropriate. --- src/lib/server.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/server.h') diff --git a/src/lib/server.h b/src/lib/server.h index 7e42f6cbd..5025a2760 100644 --- a/src/lib/server.h +++ b/src/lib/server.h @@ -23,8 +23,9 @@ #define DCPOMATIC_SERVER_H -#include +#include "io_context.h" #include +#include #include #include @@ -54,7 +55,7 @@ private: void start_accept (); void handle_accept (std::shared_ptr, boost::system::error_code const &); - boost::asio::io_service _io_service; + dcpomatic::io_context _io_context; boost::asio::ip::tcp::acceptor _acceptor; int _timeout; std::weak_ptr _socket; -- cgit v1.2.3