Add some possibly-useful markers for debugging threads from coredumps.
[dcpomatic.git] / src / lib / content_part.h
index 58833655fb5dcb9d503b1e0fc2f87ef8f62c1f67..443c356b19ab45c883adc8d01e16417cd84fc72e 100644 (file)
@@ -23,8 +23,7 @@
 #define DCPOMATIC_CONTENT_PART_H
 
 #include "content.h"
-#include "content_change.h"
-#include <boost/weak_ptr.hpp>
+#include "change_signaller.h"
 #include <boost/thread/mutex.hpp>
 
 class Content;
@@ -42,7 +41,7 @@ protected:
        void
        maybe_set (T& member, T new_value, int property) const
        {
-               ContentChange cc (_parent, property);
+               ContentChangeSignaller cc (_parent, property);
                {
                        boost::mutex::scoped_lock lm (_mutex);
                        if (member == new_value) {
@@ -57,7 +56,7 @@ protected:
        void
        maybe_set (boost::optional<T>& member, T new_value, int property) const
        {
-               ContentChange cc (_parent, property);
+               ContentChangeSignaller cc (_parent, property);
                {
                        boost::mutex::scoped_lock lm (_mutex);
                        if (member && member.get() == new_value) {