summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-04-26 15:13:40 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-04-26 15:13:40 +0000
commit72f9b8400ee57c7ddf07579aa5b9c50bfafbfef8 (patch)
treed2930b7595f73ff0b0acc6f4a57183f0da89ba34 /gtk2_ardour
parenta5d9eebe1375f92f7c9a192945fe601206ef07d5 (diff)
make timefx thread sleep for a bit after its done, so that the GUI can process its requests before it dies and takes it request buffer with it
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@9430 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_timefx.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_timefx.cc b/gtk2_ardour/editor_timefx.cc
index 543c1821e0..2b1ad3cbc2 100644
--- a/gtk2_ardour/editor_timefx.cc
+++ b/gtk2_ardour/editor_timefx.cc
@@ -20,6 +20,7 @@
#include <iostream>
#include <cstdlib>
#include <cmath>
+#include <ctime>
#include <string>
@@ -442,6 +443,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;
}