X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fj2k_encoder.h;h=d56fc1aecd19576c15c96525ce77193fff66d9f9;hb=4b91800c7de893ec1bbc5a00ab245fd6c01b8b25;hp=b57c4df7e3692501a64256730ab2928b1a92a692;hpb=ea6b2dae46caa1da829fbf499e83cd6ae3b3773a;p=dcpomatic.git diff --git a/src/lib/j2k_encoder.h b/src/lib/j2k_encoder.h index b57c4df7e..d56fc1aec 100644 --- a/src/lib/j2k_encoder.h +++ b/src/lib/j2k_encoder.h @@ -87,9 +87,8 @@ private: EventHistory _history; - /** Mutex for _threads */ - mutable boost::mutex _threads_mutex; - std::list _threads; + boost::shared_ptr _threads; + mutable boost::mutex _queue_mutex; std::list > _queue; /** condition to manage thread wakeups when we have nothing to do */