From a1546fb6c4e59621d99271b8ca996e96a574f7b3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 30 Jan 2020 22:19:17 +0100 Subject: Use a non-pointer boost::thread and a std::atomic for the stop flag. --- src/lib/hints.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/hints.h') 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 _film; - boost::thread* _thread; + boost::thread _thread; bool _long_ccap; bool _overlap_ccap; bool _too_many_ccap_lines; boost::optional _last; - boost::mutex _mutex; - bool _stop; + boost::atomic _stop; }; -- cgit v1.2.3