diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-06 15:11:43 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-06 15:11:43 +0000 |
| commit | d98bdad019ba9be5d800dece0414d7a080609027 (patch) | |
| tree | 003bdcb6a1b0f4c6516d4a11dd84c2c79cdab5db /src/lib/encoder.h | |
| parent | 4782e1c0beec98560950a616902669f09a98faae (diff) | |
Add some missing test stuff; split server discovery off into ServerFinder.
Diffstat (limited to 'src/lib/encoder.h')
| -rw-r--r-- | src/lib/encoder.h | 9 |
1 files changed, 3 insertions, 6 deletions
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<ServerDescription>); 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<const Film> _film; @@ -113,10 +113,7 @@ private: boost::condition _condition; boost::shared_ptr<Writer> _writer; - - /** A thread to periodically issue broadcasts to find encoding servers */ - boost::thread* _broadcast_thread; - boost::thread* _listen_thread; + boost::shared_ptr<ServerFinder> _server_finder; }; #endif |
