From 14b0ca31bcb62e5b7e9e77634ef9cd2e8cf65800 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 30 Mar 2010 15:18:43 +0000 Subject: handle deletion of UI objects between the time that a callback is queued with the UI event loop and the execution of the callback (intrusive, big) git-svn-id: svn://localhost/ardour2/branches/3.0@6807 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/gui_thread.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gtk2_ardour/gui_thread.h') diff --git a/gtk2_ardour/gui_thread.h b/gtk2_ardour/gui_thread.h index cb9c1860f2..16dc0600a1 100644 --- a/gtk2_ardour/gui_thread.h +++ b/gtk2_ardour/gui_thread.h @@ -25,9 +25,16 @@ #include #include +namespace sigc { + class trackable; +} + #define ENSURE_GUI_THREAD(obj,method, ...) if (!Gtkmm2ext::UI::instance()->caller_is_self()) { abort (); } #define gui_context() Gtkmm2ext::UI::instance() /* a UICallback-derived object that specifies the event loop for GUI signal handling */ #define ui_bind(f, ...) boost::protect (boost::bind (f, __VA_ARGS__)) +extern PBD::EventLoop::InvalidationRecord* __invalidator (sigc::trackable& trackable, const char*, int); +#define invalidator(x) __invalidator ((x), __FILE__, __LINE__) + #endif /* __ardour_gtk_gui_thread_h__ */ -- cgit v1.2.3