std::shared_ptr
[dcpomatic.git] / src / lib / encode_server.h
index 40e84ad6029d9d7ff28d6f942923e989ffe7f549..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;