Adapt for libdcp use of enum class.
[dcpomatic.git] / src / lib / encode_server.h
index 91e0075039823f2616e719061ff517d899ed1760..d313a851d3f942eb3bbe6a372b1a4075dece47a2 100644 (file)
@@ -48,14 +48,14 @@ public:
        void run ();
 
 private:
-       void handle (boost::shared_ptr<Socket>);
+       void handle (std::shared_ptr<Socket>);
        void worker_thread ();
-       int process (boost::shared_ptr<Socket> socket, struct timeval &, struct timeval &);
+       int process (std::shared_ptr<Socket> socket, struct timeval &, struct timeval &);
        void broadcast_thread ();
        void broadcast_received ();
 
-       std::vector<boost::thread*> _worker_threads;
-       std::list<boost::shared_ptr<Socket> > _queue;
+       boost::thread_group _worker_threads;
+       std::list<std::shared_ptr<Socket> > _queue;
        boost::condition _full_condition;
        boost::condition _empty_condition;
        bool _verbose;