Make FileError say what path the problem was with.
[dcpomatic.git] / src / lib / playlist.h
index d9140bdfb6d87ead55318bf8ffbac1a6c81dd92e..a5dce1498be1d500c9861cb9e2dfc883693967ed 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2018 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -23,6 +23,7 @@
 
 #include "util.h"
 #include "frame_rate_change.h"
+#include "atomicity_checker.h"
 #include <libcxml/cxml.h>
 #include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
@@ -85,11 +86,13 @@ private:
        void disconnect ();
        void reconnect (boost::shared_ptr<const Film> film);
 
+       mutable boost::mutex _mutex;
        /** List of content.  Kept sorted in position order. */
        ContentList _content;
        bool _sequence;
        bool _sequencing;
        std::list<boost::signals2::connection> _content_connections;
+       AtomicityChecker _checker;
 };
 
 #endif