From c0a009beb9471a92e83c641b2f5dcaeb613e97dc Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 26 Apr 2011 15:17:17 +0000 Subject: [PATCH] forward port a disgusting hack from 2.X that stops the timefx thread's exiting from preventing its request event pool being marked dead too soon git-svn-id: svn://localhost/ardour2/branches/3.0@9431 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_timefx.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtk2_ardour/editor_timefx.cc b/gtk2_ardour/editor_timefx.cc index 03094d0a52..d40299a0a3 100644 --- a/gtk2_ardour/editor_timefx.cc +++ b/gtk2_ardour/editor_timefx.cc @@ -20,6 +20,7 @@ #include #include #include +#include #include @@ -365,6 +366,14 @@ Editor::timefx_thread (void *arg) tsd->editor.do_timefx (*tsd); + /* GACK! HACK! sleep for a bit so that our request buffer for the GUI + event loop doesn't die before any changes we made are processed + by the GUI ... + */ + + struct timespec t = { 2, 0 }; + nanosleep (&t, 0); + return 0; }