From 2a95d79014c6c7dcef73c8cae083c2e34c7bb811 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 27 Jan 2017 22:15:10 +0100 Subject: 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. --- libs/ardour/ardour/presentation_info.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/ardour/ardour/presentation_info.h') 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&); }; -- cgit v1.2.3