Another macOS std::list boost::thread SNAFU.
[dcpomatic.git] / src / lib / encode_server.h
index c9bd5571849d1d0e66aa670daab2795e6930e714..91e0075039823f2616e719061ff517d899ed1760 100644 (file)
@@ -54,7 +54,7 @@ private:
        void broadcast_thread ();
        void broadcast_received ();
 
-       std::vector<boost::thread *> _worker_threads;
+       std::vector<boost::thread*> _worker_threads;
        std::list<boost::shared_ptr<Socket> > _queue;
        boost::condition _full_condition;
        boost::condition _empty_condition;
@@ -64,11 +64,11 @@ private:
        struct Broadcast {
 
                Broadcast ()
-                       : thread (0)
-                       , socket (0)
+                       : socket (0)
                {}
 
-               boost::thread* thread;
+               boost::mutex mutex;
+               boost::thread thread;
                boost::asio::ip::udp::socket* socket;
                char buffer[64];
                boost::asio::ip::udp::endpoint send_endpoint;