/** Called when a processing run has finished */
void end ();
- float current_encoding_rate () const;
+ boost::optional<float> current_encoding_rate () const;
int video_frames_enqueued () const;
void servers_list_changed ();
EventHistory _history;
- /** Mutex for _threads */
- mutable boost::mutex _threads_mutex;
- std::list<boost::thread *> _threads;
+ boost::shared_ptr<boost::thread_group> _threads;
+
mutable boost::mutex _queue_mutex;
std::list<boost::shared_ptr<DCPVideo> > _queue;
/** condition to manage thread wakeups when we have nothing to do */