X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Fstateful.h;h=4808bc2911f816b3e6e5634342dab488a5bd0433;hb=0aac62e013e15e380001dafae39d554f8765a4a1;hp=36c6fe28c7184cac9633cf7c9efb564716816834;hpb=28d7884eed20110af10a548cec7c559157dfe8c4;p=ardour.git diff --git a/libs/pbd/pbd/stateful.h b/libs/pbd/pbd/stateful.h index 36c6fe28c7..4808bc2911 100644 --- a/libs/pbd/pbd/stateful.h +++ b/libs/pbd/pbd/stateful.h @@ -91,7 +91,7 @@ class Stateful { virtual void suspend_property_changes (); virtual void resume_property_changes (); - bool property_changes_suspended() const { return g_atomic_int_get (&_stateful_frozen) > 0; } + bool property_changes_suspended() const { return g_atomic_int_get (const_cast(&_stateful_frozen)) > 0; } protected: @@ -110,7 +110,7 @@ class Stateful { XMLNode *_extra_xml; XMLNode *_instant_xml; PBD::PropertyChange _pending_changed; - Glib::Mutex _lock; + Glib::Threads::Mutex _lock; std::string _xml_node_name; ///< name of node to use for this object in XML OwnedPropertyList* _properties; @@ -123,7 +123,7 @@ class Stateful { private: PBD::ID _id; - int32_t _stateful_frozen; + gint _stateful_frozen; }; } // namespace PBD