diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-26 11:04:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-26 11:04:02 +0100 |
| commit | 02f028d271677b3b3669b5cdfda1597108a34b80 (patch) | |
| tree | 76618364e855af0e31bc88c44f8357da62d8c5f5 /src/lib/server.h | |
| parent | ee8f7f7edb1da818f60dfd2da11ca458aad0dc35 (diff) | |
Use full/empty conditions rather than just a single condition for the server and encoder.
Diffstat (limited to 'src/lib/server.h')
| -rw-r--r-- | src/lib/server.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<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; |
