X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fencoder.h;h=6bb97012abaebfceedf57f30960aaa3fb3bfbf30;hb=4616b19fb5241a54c9d57f7a91bb975f41aed14b;hp=ac1d74c57b39af3aa449e43fd628651108701823;hpb=04533b9cf34ce8089113015715083ee9c5b2b001;p=dcpomatic.git diff --git a/src/lib/encoder.h b/src/lib/encoder.h index ac1d74c57..6bb97012a 100644 --- a/src/lib/encoder.h +++ b/src/lib/encoder.h @@ -38,6 +38,7 @@ extern "C" { #include "util.h" #include "config.h" #include "cross.h" +#include "exceptions.h" class Image; class AudioBuffers; @@ -109,7 +110,10 @@ private: std::list > _queue; std::list _threads; mutable boost::mutex _mutex; - boost::condition _condition; + /** condition to manage thread wakeups when we have nothing to do */ + boost::condition _empty_condition; + /** condition to manage thread wakeups when we have too much to do */ + boost::condition _full_condition; boost::shared_ptr _writer; Waker _waker;