13
0

Use Glib::usleep for portability

This commit is contained in:
Paul Davis 2013-07-11 15:10:10 -04:00
parent 01a4c3186a
commit 9f7e293c3b

View File

@ -19,6 +19,8 @@
#include <iostream>
#include <glibmm/timer.h>
#include "pbd/compose.h"
#include "ardour/automation_control.h"
@ -134,7 +136,7 @@ void
AutomationWatch::thread ()
{
while (_run_thread) {
usleep ((useconds_t) floor (Config->get_automation_interval_msecs() * 1000));
Glib::usleep ((useconds_t) floor (Config->get_automation_interval_msecs() * 1000));
timer ();
}
}