summaryrefslogtreecommitdiff
path: root/src/lib/server.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-17 01:25:02 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-22 13:29:58 +0100
commit9dd72fc481349f0b5ce985164441eecfa6485c19 (patch)
treed8136ef6d6b660a5a411722a128d0e309333ff3d /src/lib/server.h
parent169c47ede14b6e86e054871a56ffa048357b4463 (diff)
Add abstraction of io_{context,service} and use it as appropriate.
Diffstat (limited to 'src/lib/server.h')
-rw-r--r--src/lib/server.h5
1 files changed, 3 insertions, 2 deletions
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 <boost/thread.hpp>
+#include "io_context.h"
#include <boost/asio.hpp>
+#include <boost/thread.hpp>
#include <boost/thread/condition.hpp>
#include <string>
@@ -54,7 +55,7 @@ private:
void start_accept ();
void handle_accept (std::shared_ptr<Socket>, 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> _socket;