From 7bbf76132164d3bd293c3bfdf2038dd47f1cc63b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 16 Nov 2006 03:18:30 +0000 Subject: start of new crossthread-safe design git-svn-id: svn://localhost/ardour2/trunk@1133 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/gui_thread.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk2_ardour/gui_thread.h') diff --git a/gtk2_ardour/gui_thread.h b/gtk2_ardour/gui_thread.h index 22381e3536..1f53f97004 100644 --- a/gtk2_ardour/gui_thread.h +++ b/gtk2_ardour/gui_thread.h @@ -2,6 +2,7 @@ #define __ardour_gtk_gui_thread_h__ #include +#include #define ENSURE_GUI_THREAD(slot) \ if (!Gtkmm2ext::UI::instance()->caller_is_ui_thread()) {\ @@ -9,4 +10,8 @@ return;\ } +#define GTK_SAFE(theSlot) crossthread_safe (Gtkmm2ext::UI::instance()->thread_id(),\ + *Gtkmm2ext::UI::instance(), \ + (theSlot)) + #endif /* __ardour_gtk_gui_thread_h__ */ -- cgit v1.2.3