Use thread_group for improved exception safety (#1785).
[dcpomatic.git] / src / lib / encode_server.h
index 91e0075039823f2616e719061ff517d899ed1760..a43cea7efea8228a02a06d063766bd861948477f 100644 (file)
@@ -54,7 +54,7 @@ private:
        void broadcast_thread ();
        void broadcast_received ();
 
-       std::vector<boost::thread*> _worker_threads;
+       boost::thread_group _worker_threads;
        std::list<boost::shared_ptr<Socket> > _queue;
        boost::condition _full_condition;
        boost::condition _empty_condition;