diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-23 22:53:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-23 22:53:56 +0200 |
| commit | 73ebb92e9df01ba7afb97121b6e2cef6ca13a18e (patch) | |
| tree | 118963fcf42c27cceaa0602d5870781c8a22d2d8 /src/lib/j2k_encoder.h | |
| parent | 2f2df8e53124bee8bc8312f37bc8608dc46085d6 (diff) | |
Use thread_group for improved exception safety (#1785).
Diffstat (limited to 'src/lib/j2k_encoder.h')
| -rw-r--r-- | src/lib/j2k_encoder.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/j2k_encoder.h b/src/lib/j2k_encoder.h index b4542c40a..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<boost::thread*> _threads; + boost::shared_ptr<boost::thread_group> _threads; + mutable boost::mutex _queue_mutex; std::list<boost::shared_ptr<DCPVideo> > _queue; /** condition to manage thread wakeups when we have nothing to do */ |
