Use full/empty conditions rather than just a single condition for the server and...
[dcpomatic.git] / src / lib / server.h
index a9b4b1c1c8982ed9d57c615c9cee6fcfd9df0324..b925031eb2df667cfff90f64a71eacdf3ecb6d7f 100644 (file)
@@ -102,7 +102,8 @@ private:
        std::vector<boost::thread *> _worker_threads;
        std::list<boost::shared_ptr<Socket> > _queue;
        boost::mutex _worker_mutex;
-       boost::condition _worker_condition;
+       boost::condition _full_condition;
+       boost::condition _empty_condition;
        boost::shared_ptr<Log> _log;
        bool _verbose;