summaryrefslogtreecommitdiff
path: root/gtk2_ardour/linux_vst_gui_support.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-12-03 10:24:34 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2013-12-03 10:24:34 -0500
commit69df7763a19c56e83dd95b964c51172fbef7f22b (patch)
treec3faac678bffb5e34c19f25774ce21ff8ae943a4 /gtk2_ardour/linux_vst_gui_support.cc
parent0258f2958b05c420105d0e684681193e404201ac (diff)
switch from using Sleep/usleep to Glib::usleep() (and remember that we need to make Glib::usleep() actually work on windows one day)
Diffstat (limited to 'gtk2_ardour/linux_vst_gui_support.cc')
-rw-r--r--gtk2_ardour/linux_vst_gui_support.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/linux_vst_gui_support.cc b/gtk2_ardour/linux_vst_gui_support.cc
index 6eec688a7c..4d90bdd4aa 100644
--- a/gtk2_ardour/linux_vst_gui_support.cc
+++ b/gtk2_ardour/linux_vst_gui_support.cc
@@ -33,6 +33,7 @@
#include <pthread.h>
#include <signal.h>
#include <glib.h>
+#include <glibmm/timer.h>
#include "ardour/linux_vst_support.h"
@@ -377,7 +378,7 @@ void* gui_event_loop (void* ptr)
/*We don't want to use all the CPU.. */
- usleep(1000);
+ Glib::usleep(1000);
LXVST_sched_event_timer++;
@@ -706,7 +707,7 @@ vstfx_launch_editor (VSTState* vstfx)
/*QUIRK - some plugins need a slight delay after opening the editor before you can
ask the window size or they might return zero - specifically discoDSP */
- usleep(100000);
+ Glib::usleep(100000);
/*Now we can find out how big the parent window should be (and try) to resize it*/