From d98bdad019ba9be5d800dece0414d7a080609027 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 6 Nov 2013 15:11:43 +0000 Subject: Add some missing test stuff; split server discovery off into ServerFinder. --- src/lib/encoder.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/lib/encoder.h') diff --git a/src/lib/encoder.h b/src/lib/encoder.h index 9fcba560f..902dae2d5 100644 --- a/src/lib/encoder.h +++ b/src/lib/encoder.h @@ -46,6 +46,7 @@ class DCPVideoFrame; class EncodedData; class Writer; class Job; +class ServerFinder; /** @class Encoder * @brief Encoder to J2K and WAV for DCP. @@ -84,9 +85,8 @@ private: void encoder_thread (boost::optional); void terminate_threads (); - void broadcast_thread (); - void listen_thread (); void add_worker_threads (ServerDescription); + void server_found (ServerDescription); /** Film that we are encoding */ boost::shared_ptr _film; @@ -113,10 +113,7 @@ private: boost::condition _condition; boost::shared_ptr _writer; - - /** A thread to periodically issue broadcasts to find encoding servers */ - boost::thread* _broadcast_thread; - boost::thread* _listen_thread; + boost::shared_ptr _server_finder; }; #endif -- cgit v1.2.3