diff options
author | Carl Hetherington <carl@carlh.net> | 2011-12-17 16:37:18 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-12-17 16:37:18 +0000 |
commit | 39f765614a7964e07c55a57ba854f8524807d6cb (patch) | |
tree | 3d3ff60e0867099f991e669044b4c5c234413917 /libs/pbd/pbd/stateful.h | |
parent | 85b75a0ab1c3c342cde0f0cdae71fea87a57ff20 (diff) |
Clear up confusion with overloads of _frozen and frozen()
meaning different things.
git-svn-id: svn://localhost/ardour2/branches/3.0@11016 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/stateful.h')
-rw-r--r-- | libs/pbd/pbd/stateful.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/pbd/pbd/stateful.h b/libs/pbd/pbd/stateful.h index 2d5b2a0990..506d058773 100644 --- a/libs/pbd/pbd/stateful.h +++ b/libs/pbd/pbd/stateful.h @@ -90,9 +90,9 @@ class Stateful { virtual void suspend_property_changes (); virtual void resume_property_changes (); - - virtual bool frozen() const { return _frozen; } + bool property_changes_suspended() const { return g_atomic_int_get (&_stateful_frozen) > 0; } + protected: void add_instant_xml (XMLNode&, const sys::path& directory_path); @@ -109,7 +109,6 @@ class Stateful { XMLNode *_extra_xml; XMLNode *_instant_xml; - int32_t _frozen; PBD::PropertyChange _pending_changed; Glib::Mutex _lock; @@ -121,10 +120,10 @@ class Stateful { within thaw() just before send_change() is called. */ virtual void mid_thaw (const PropertyChange&) { } - bool property_changes_suspended() const { return g_atomic_int_get (&_frozen) > 0; } private: PBD::ID _id; + int32_t _stateful_frozen; }; } // namespace PBD |