swaroop: take ownership of config file if we're run as root.
[dcpomatic.git] / src / lib / active_text.h
index 10ce30f08476711a511f9d7ee53b09fb5c30d7e1..ff4a1bd2f75cf07cc39bb621193171f7ceb992c7 100644 (file)
@@ -25,6 +25,7 @@
 #include "dcpomatic_time.h"
 #include "player_text.h"
 #include <boost/noncopyable.hpp>
+#include <boost/thread/mutex.hpp>
 #include <list>
 #include <map>
 
@@ -36,7 +37,6 @@ class TextContent;
 class ActiveText : public boost::noncopyable
 {
 public:
-       std::list<PlayerText> get (DCPTimePeriod period) const;
        std::list<PlayerText> get_burnt (DCPTimePeriod period, bool always_burn_captions) const;
        void clear_before (DCPTime time);
        void clear ();
@@ -62,7 +62,6 @@ private:
 
        typedef std::map<boost::weak_ptr<const TextContent>, std::list<Period> > Map;
 
-       void add (DCPTimePeriod period, std::list<PlayerText>& pc, std::list<Period> p) const;
-
+       mutable boost::mutex _mutex;
        Map _data;
 };