From 02f028d271677b3b3669b5cdfda1597108a34b80 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 26 Jun 2014 11:04:02 +0100 Subject: Use full/empty conditions rather than just a single condition for the server and encoder. --- src/lib/server.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/server.h') diff --git a/src/lib/server.h b/src/lib/server.h index a9b4b1c1c..b925031eb 100644 --- a/src/lib/server.h +++ b/src/lib/server.h @@ -102,7 +102,8 @@ private: std::vector _worker_threads; std::list > _queue; boost::mutex _worker_mutex; - boost::condition _worker_condition; + boost::condition _full_condition; + boost::condition _empty_condition; boost::shared_ptr _log; bool _verbose; -- cgit v1.2.3