diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-01-30 22:19:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-30 22:19:17 +0100 |
| commit | a1546fb6c4e59621d99271b8ca996e96a574f7b3 (patch) | |
| tree | 72b99a6de8e521297e85f38b02f7e87160c76768 /src/lib/hints.h | |
| parent | 05f2028ec1280a98050dc22609879230337a35ef (diff) | |
Use a non-pointer boost::thread and a std::atomic for the stop flag.
Diffstat (limited to 'src/lib/hints.h')
| -rw-r--r-- | src/lib/hints.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/hints.h b/src/lib/hints.h index e9a75fb14..db7ee49b6 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -49,13 +49,12 @@ private: void text (PlayerText text, TextType type, dcpomatic::DCPTimePeriod period); boost::weak_ptr<const Film> _film; - boost::thread* _thread; + boost::thread _thread; bool _long_ccap; bool _overlap_ccap; bool _too_many_ccap_lines; boost::optional<dcpomatic::DCPTimePeriod> _last; - boost::mutex _mutex; - bool _stop; + boost::atomic<bool> _stop; }; |
