diff options
author | David Robillard <d@drobilla.net> | 2012-01-14 21:47:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-14 21:47:32 +0000 |
commit | a2701525891f69cc810ed370dd54ac76944b1d0b (patch) | |
tree | bd605803eb386ab992b2ec59ab0971cd62468d58 /src/server | |
parent | 692e851810156ce4bc4929ea803366c2fcb2ed94 (diff) | |
download | ingen-a2701525891f69cc810ed370dd54ac76944b1d0b.tar.gz ingen-a2701525891f69cc810ed370dd54ac76944b1d0b.tar.bz2 ingen-a2701525891f69cc810ed370dd54ac76944b1d0b.zip |
Replace some non-portable stuff with glib equivalents.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3947 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/ingen_lv2.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 <stdlib.h> -#include <time.h> #include <string> #include <vector> @@ -25,6 +24,7 @@ #include <glib.h> #include <glibmm/convert.h> #include <glibmm/miscutils.h> +#include <glibmm/timer.h> #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 } } |