diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-27 22:15:10 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-27 22:17:53 +0100 |
commit | 2a95d79014c6c7dcef73c8cae083c2e34c7bb811 (patch) | |
tree | a446dbe132edc76377b54504aa1ffa577d44fff7 /libs/ardour/ardour/presentation_info.h | |
parent | cc82fc675b096c3dfec76d0c45671b78c85007cf (diff) |
use a lock when dealing with PresentationInfo::Change emission
This allows us to emit the signal while still marking further emissions as blocked.
This in turns prevents handlers from recursively calling themselves.
Diffstat (limited to 'libs/ardour/ardour/presentation_info.h')
-rw-r--r-- | libs/ardour/ardour/presentation_info.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/ardour/presentation_info.h b/libs/ardour/ardour/presentation_info.h index aa94cfd7aa..6984930f3d 100644 --- a/libs/ardour/ardour/presentation_info.h +++ b/libs/ardour/ardour/presentation_info.h @@ -265,6 +265,7 @@ class LIBARDOUR_API PresentationInfo : public PBD::Stateful color_t _color; static PBD::PropertyChange _pending_static_changes; + static Glib::Threads::Mutex static_signal_lock; static int _change_signal_suspended; static void send_static_change (const PBD::PropertyChange&); }; |