From a2701525891f69cc810ed370dd54ac76944b1d0b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Jan 2012 21:47:32 +0000 Subject: Replace some non-portable stuff with glib equivalents. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3947 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/ingen_lv2.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/server') diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index bc9e861f..e7a07e5a 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -17,7 +17,6 @@ */ #include -#include #include #include @@ -25,6 +24,7 @@ #include #include #include +#include #include "lv2/lv2plug.in/ns/lv2core/lv2.h" @@ -234,9 +234,8 @@ public: private: virtual void _run() { - static const timespec main_rate = { 0, 125000000 }; // 1/8 second while (_engine->main_iteration()) { - nanosleep(&main_rate, NULL); + Glib::usleep(125000); // 1/8 second } } -- cgit v1.2.1