summaryrefslogtreecommitdiff
path: root/src/lib/butler.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/butler.h
parent169c47ede14b6e86e054871a56ffa048357b4463 (diff)
Add abstraction of io_{context,service} and use it as appropriate.
Diffstat (limited to 'src/lib/butler.h')
-rw-r--r--src/lib/butler.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/butler.h b/src/lib/butler.h
index 6bb0467af..82b952207 100644
--- a/src/lib/butler.h
+++ b/src/lib/butler.h
@@ -27,6 +27,7 @@
#include "audio_ring_buffers.h"
#include "change_signaller.h"
#include "exception_store.h"
+#include "io_context.h"
#include "text_ring_buffers.h"
#include "text_type.h"
#include "video_ring_buffers.h"
@@ -114,8 +115,8 @@ private:
TextRingBuffers _closed_caption;
boost::thread_group _prepare_pool;
- boost::asio::io_service _prepare_service;
- std::shared_ptr<boost::asio::io_service::work> _prepare_work;
+ dcpomatic::io_context _prepare_context;
+ boost::optional<dcpomatic::work_guard> _prepare_work;
/** mutex to protect _pending_seek_position, _pending_seek_accurate, _finished, _died, _stop_thread */
boost::mutex _mutex;